Module: Eceval::CLI
- Defined in:
- lib/eceval/cli.rb
Defined Under Namespace
Classes: Command
Class Method Summary collapse
Class Method Details
.run(argv: ARGV, out: $stdout, err: $stderr) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/eceval/cli.rb', line 5 def self.run(argv: ARGV, out: $stdout, err: $stderr) old_out = $stdout old_err = $stderr begin $stdout = out $stderr = err Dry::CLI.new(Command).call(arguments: argv, out: out, err: err) ensure $stdout = old_out $stderr = old_err end end |