Sha256: f60358b4940da333778138134025d90084ffe9eec6dff00181efbf05425f6808

Contents?: true

Size: 656 Bytes

Versions: 5

Compression:

Stored size: 656 Bytes

Contents

# typed: true
# frozen_string_literal: true

module Packwerk
  module OutputStyles
    class Plain
      class << self
        def reset
          ""
        end

        def filename
          ""
        end

        def error
          ""
        end
      end
    end

    # See https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit for ANSI escape colour codes
    class Coloured
      class << self
        def reset
          "\033[m"
        end

        def filename
          # 36 is foreground cyan
          "\033[36m"
        end

        def error
          # 31 is foreground red
          "\033[31m"
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
packwerk-1.1.1 lib/packwerk/output_styles.rb
packwerk-1.1.0 lib/packwerk/output_styles.rb
packwerk-1.0.2 lib/packwerk/output_styles.rb
packwerk-1.0.1 lib/packwerk/output_styles.rb
packwerk-1.0.0 lib/packwerk/output_styles.rb