Sha256: 30d30b0cb8d4cb3000cda1874cd1391a094bdced6c4c09e64231c6a7194b7c04
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
# frozen_string_literal: true require 'async' require 'async/http' require 'async/http/internet' require 'json' module Pytty module Client module Cli class PortCommand < Clamp::Command parameter "ID", "id" parameter "PORTS", "ports" def execute Async.run do from,to = ports.split(":") Pytty::Client::Api::Port.run id: id, from: from, to: to 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/port_command.rb |