Sha256: d91e20f0658a80cc1b938a2a0bebcdb4d99daee48ae8d21276bec8c56cc06dab

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true
require 'async'
require 'async/http'
require 'async/http/internet'
require 'json'

module Pytty
  module Client
    module Cli
      class SpawnCommand < Clamp::Command
        parameter "ID ...", "id"

        def execute
          Async.run do
            for id in id_list
              Pytty::Client::Api::Spawn.run id: id
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pytty-0.3.0 lib/pytty/client/cli/spawn_command.rb