Class: Heyterminal::CliCommand

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/heyterminal/cli_command.rb

Instance Method Summary collapse

Instance Method Details

#safe_callObject



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.message).red
  exit 2
end