mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 22:02:18 +08:00
13 lines
388 B
Ruby
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
|