Class: GitlabCli::UI::Color
- Defined in:
- lib/gitlab_cli/ui.rb
Constant Summary collapse
- COLORS =
Terminal colors
{ :clear => "\e[0m", :red => "\e[31m", :green => "\e[32m", :yellow => "\e[33m" }
- COLOR_MAP =
Mapping between type of message and the color to output
{ :info => nil, :warn => :yellow, :error => :red, :success => :green }
Instance Method Summary collapse
-
#initialize ⇒ Color
constructor
A new instance of Color.
Methods inherited from Basic
Constructor Details
#initialize ⇒ Color
Returns a new instance of Color.
62 63 64 65 66 |
# File 'lib/gitlab_cli/ui.rb', line 62 def initialize #super @shell = Thor::Shell::Color.new end |