Method: Arcanus::CLI#run

Defined in:
lib/arcanus/cli.rb

#run(arguments) ⇒ Integer

Parses the given command-line arguments and executes appropriate logic based on those arguments.

Parameters:

  • arguments (Array<String>)

Returns:

  • (Integer)

    exit status code



30
31
32
33
34
35
36
# File 'lib/arcanus/cli.rb', line 30

def run(arguments)
  run_command(arguments)

  ExitCodes::OK
rescue => ex
  ErrorHandler.new(@ui).handle(ex)
end