Files
ubicloud/cli-commands/pg/post/ca-certificates.rb
Jeremy Evans de7980aac3 Add pg ca-certificates to the cli
This already existed in the sdk, since it was supported in pg show.
This just provides an easier approach for downloading the
certificates to a file with shell redirection, as using
pg show -f ca-certificates will include an extra header.
2025-08-19 07:29:45 -07:00

12 lines
256 B
Ruby

# frozen_string_literal: true
UbiCli.on("pg").run_on("ca-certificates") do
desc "Print CA certificates for a PostgreSQL database"
banner "ubi pg (location/pg-name | pg-id) ca-certificates"
run do
response(sdk_object.ca_certificates)
end
end