Method: Commander::UI.color

Defined in:
lib/commander/user_interaction.rb

.color(*args) ⇒ Object

‘Say’ something using the specified color

Examples

color 'I am blue', :blue
color 'I am bold', :bold
color 'White on Red', :white, :on_red

Notes

You may use:
* color:    black blue cyan green magenta red white yellow
* style:    blink bold clear underline
* highligh: on_<color>


117
118
119
# File 'lib/commander/user_interaction.rb', line 117

def color(*args)
  say $terminal.color(*args)
end