Sha256: 4ea3a676ccd4f743d45f05aa791905e6e7614f4383bfb799312b50dcff680a15
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true require 'async' require 'async/http' require 'async/http/internet' require 'json' module Pytty module Client module Cli class StdoutCommand < Clamp::Command parameter "ID", "id" def execute Async.run do response, body = Pytty::Client::Api::Stdout.run id: id if response.status == 200 puts body.read else puts body.read exit 1 end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pytty-0.5.0 | lib/pytty/client/cli/stdout_command.rb |