Sha256: edb8756090437b61b0a0c3040a4fa50cd53bef896481b897b89afc24b837d977

Contents?: true

Size: 294 Bytes

Versions: 5

Compression:

Stored size: 294 Bytes

Contents

class I18nFlow::CLI
  module Color
    COLORS = {
      black:   30,
      red:     31,
      green:   32,
      yellow:  33,
      blue:    34,
      magenta: 35,
      cyan:    36,
      white:   37,
    }.freeze

    def color(str, c)
      "\e[1;#{COLORS[c]}m#{str}\e[0m"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
i18n_flow-0.2.3 lib/i18n_flow/cli/color.rb
i18n_flow-0.2.2 lib/i18n_flow/cli/color.rb
i18n_flow-0.2.1 lib/i18n_flow/cli/color.rb
i18n_flow-0.2.0 lib/i18n_flow/cli/color.rb
i18n_flow-0.1.0 lib/i18n_flow/cli/color.rb