Files
ubicloud/cli-commands/ps/post/connect.rb
Jeremy Evans 9fc326c965 Minor CLI help improvements
* Spaces around `|` between name and id.

* `Get program help` -> `Get command help`

* `private-subnet-id` -> `ps-id`
2025-03-13 09:20:15 -07:00

16 lines
380 B
Ruby

# frozen_string_literal: true
UbiCli.on("ps").run_on("connect") do
desc "Connect a private subnet to another private subnet"
banner "ubi ps (location/ps-name | ps-id) connect ps-id"
args 1
run do |ps_id|
post(ps_path("/connect"), "connected-subnet-ubid" => ps_id) do |data|
["Connected private subnets with ids #{ps_id} and #{data["id"]}"]
end
end
end