Class: GitlabCli::UI::Color

Inherits:
Basic show all
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

Methods inherited from Basic

#ask, #yes?

Constructor Details

#initializeColor

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