Files
ubicloud/cli-commands/ps/post/connect.rb
Jeremy Evans 9f4280f722 Use id instead of ubid in cli usage lines
ubid is an internal concept that users will not be familiar with.
When the cli lists/shows objects, it uses the ubid when displaying
the id, so users already understand that is the id, they never see
the actual uuid.  This should make the usage lines a bit more
understandable.
2025-02-21 15:27:03 -08:00

14 lines
320 B
Ruby

# frozen_string_literal: true
UbiCli.on("ps").run_on("connect") do
options("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