ubicloud/cli-commands/pg/post/add-config-entries.rb

13 lines
388 B
Ruby

# frozen_string_literal: true
UbiCli.on("pg").run_on("add-config-entries") do
desc "Add configuration entries to a PostgreSQL database"
banner "ubi pg (location/pg-name | pg-id) add-config-entries key=value [...]"
args(1..)
run do |args, _, cmd|
config_entries_response(sdk_object.update_config(**config_entries_to_hash(args, cmd)), body: ["Updated config:\n"])
end
end