Method: Command::CommandBase#execute!
- Defined in:
- lib/commandbase.rb
#execute!(*argv, io: $stdout) ⇒ Object
コマンドを実行するが、アプリケーションは終了させない(SystemExit を補足し、終了コードを返り値とする)
122 123 124 125 126 127 128 129 130 |
# File 'lib/commandbase.rb', line 122 def execute!(*argv, io: $stdout) self.stream_io = io argv.flatten! execute(argv) rescue SystemExit => e e.status else 0 end |