Module: Simple::CLI::Runner
Instance Method Summary collapse
Instance Method Details
#run!(service, command, *args, verbose:) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/simple/cli/runner.rb', line 5 def run!(service, command, *args, verbose:) _ = verbose action_name = H.command_to_action(command) Simple::Service.with_context do flags = extract_flags!(args) ::Simple::Service.invoke(service, action_name, *args, **flags) end end |