Method: Sym::App::CLI#execute
- Defined in:
- lib/sym/app/cli.rb
#execute ⇒ Object
112 113 114 115 116 117 118 119 120 |
# File 'lib/sym/app/cli.rb', line 112 def execute return Sym::App.exit_code if Sym::App.exit_code != 0 result = application.execute if result.is_a?(Hash) self.output_proc ::Sym::App::Args.new({}).output_class error(result) end Sym::App.exit_code end |