Module: Simple::CLI::Runner

Extended by:
Runner
Included in:
Runner
Defined in:
lib/simple/cli/runner.rb

Instance Method Summary collapse

Instance Method Details

#run!(service, command, *args, verbose:) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/simple/cli/runner.rb', line 9

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: args, flags: flags)
  end
end