Class: Heyterminal::CliCommand
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Heyterminal::CliCommand
- Defined in:
- lib/heyterminal/cli_command.rb
Direct Known Subclasses
Heyterminal::Cli::Commands::Edit, Heyterminal::Cli::Commands::List, Heyterminal::Cli::Commands::Run, Heyterminal::Cli::Commands::Version
Instance Method Summary collapse
Instance Method Details
#safe_call ⇒ Object
4 5 6 7 8 9 |
# File 'lib/heyterminal/cli_command.rb', line 4 def safe_call yield rescue Heyterminal::Error => e puts Rainbow(e.).red exit 2 end |