Class: Rodbot::CLI::Command

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/rodbot/cli/command.rb

Instance Method Summary collapse

Instance Method Details

#call(backtrace:, **args) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/rodbot/cli/command.rb', line 8

def call(backtrace:, **args)
  rescued_call(**args)
rescue => error
  error(error.message) do
    raise error if backtrace
  end
end