Class: Pytty::Client::Cli::YieldCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Pytty::Client::Cli::YieldCommand
- Defined in:
- lib/pytty/client/cli/yield_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/pytty/client/cli/yield_command.rb', line 14 def execute process_yield = Async.run do json = Pytty::Client::Api::Yield.run cmd: cmd_list, env: {} ::Pytty::Client::ProcessYield.from_json json end.wait if quiet? puts process_yield.id else puts process_yield end end |