Class: Heyterminal::Cli::Commands::Run
- Inherits:
-
Heyterminal::CliCommand
- Object
- Dry::CLI::Command
- Heyterminal::CliCommand
- Heyterminal::Cli::Commands::Run
- Defined in:
- lib/heyterminal/cli.rb
Instance Method Summary collapse
Methods inherited from Heyterminal::CliCommand
Instance Method Details
#call(command: nil, **options) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/heyterminal/cli.rb', line 20 def call(command: nil, **) safe_call do raise Heyterminal::Error, 'command is required' if command.nil? puts Heyterminal::Runner.lod_and_run(.fetch(:config, nil), command) end end |