Exception: Tomo::CLI::Error
- Defined in:
- lib/tomo/cli/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#command_name ⇒ Object
Returns the value of attribute command_name.
Instance Method Summary collapse
Methods inherited from Error
Methods included from Tomo::Colors
Instance Attribute Details
#command_name ⇒ Object
Returns the value of attribute command_name.
6 7 8 |
# File 'lib/tomo/cli/error.rb', line 6 def command_name @command_name end |
Instance Method Details
#to_console ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/tomo/cli/error.rb', line 8 def to_console tomo_command = ["tomo", command_name].compact.join(" ") <<~ERROR #{} Run #{blue("#{tomo_command} -h")} for help. ERROR end |