From 32e4660eed91de71847f6edd55ce51a161ce57c4 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 15 Jul 2020 08:56:24 +0000 Subject: [PATCH] feat: update generated cli --- ...-usage-account-ssh-key-update-usage.golden | 2 +- ...l-usage-instance-image-delete-usage.golden | 2 +- ...-all-usage-instance-image-get-usage.golden | 2 +- ...stance-placement-group-delete-usage.golden | 2 +- ...-instance-placement-group-get-usage.golden | 2 +- ...nstance-security-group-delete-usage.golden | 2 +- ...e-instance-security-group-get-usage.golden | 2 +- ...all-usage-instance-server-get-usage.golden | 2 +- ...sage-instance-snapshot-delete-usage.golden | 2 +- ...l-usage-instance-snapshot-get-usage.golden | 2 +- ...-usage-instance-volume-delete-usage.golden | 2 +- ...all-usage-instance-volume-get-usage.golden | 2 +- ...t-all-usage-rdb-backup-export-usage.golden | 2 +- ...-rdb-instance-get-certificate-usage.golden | 19 +++++++++++++ ...sage-rdb-instance-get-metrics-usage.golden | 22 +++++++++++++++ ...ll-usage-rdb-instance-upgrade-usage.golden | 6 ++-- .../test-all-usage-rdb-instance-usage.golden | 21 +++++++------- .../testdata/test-all-usage-rdb-usage.golden | 1 - .../testdata/test-human-delete-usage.golden | 2 +- .../e2e/testdata/test-human-get-usage.golden | 2 +- .../e2e/testdata/test-human-run-usage.golden | 2 +- .../testdata/test-human-update-usage.golden | 2 +- .../account/v2alpha1/account_cli.go | 1 + .../namespaces/instance/v1/instance_cli.go | 11 ++++++++ internal/namespaces/rdb/v1/rdb_cli.go | 28 ++++++++----------- internal/namespaces/test/v1/test_cli.go | 5 ++++ 26 files changed, 100 insertions(+), 48 deletions(-) create mode 100644 cmd/scw/testdata/test-all-usage-rdb-instance-get-certificate-usage.golden create mode 100644 cmd/scw/testdata/test-all-usage-rdb-instance-get-metrics-usage.golden diff --git a/cmd/scw/testdata/test-all-usage-account-ssh-key-update-usage.golden b/cmd/scw/testdata/test-all-usage-account-ssh-key-update-usage.golden index b7509ed493..9416cb23f8 100644 --- a/cmd/scw/testdata/test-all-usage-account-ssh-key-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-account-ssh-key-update-usage.golden @@ -7,7 +7,7 @@ USAGE: ARGS: ssh-key-id - [name] + [name] Name of the SSH key FLAGS: -h, --help help for update diff --git a/cmd/scw/testdata/test-all-usage-instance-image-delete-usage.golden b/cmd/scw/testdata/test-all-usage-instance-image-delete-usage.golden index 4adc1f9876..c7634e30a3 100644 --- a/cmd/scw/testdata/test-all-usage-instance-image-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-image-delete-usage.golden @@ -13,7 +13,7 @@ EXAMPLES: scw instance image delete 11111111-1111-1111-1111-111111111111 zone=fr-par-1 ARGS: - image-id + image-id UUID of the image you want to delete [with-snapshots] Delete the snapshots attached to this image [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) diff --git a/cmd/scw/testdata/test-all-usage-instance-image-get-usage.golden b/cmd/scw/testdata/test-all-usage-instance-image-get-usage.golden index 1e3acb407f..0ef6702b1f 100644 --- a/cmd/scw/testdata/test-all-usage-instance-image-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-image-get-usage.golden @@ -13,7 +13,7 @@ EXAMPLES: scw instance image get 11111111-1111-1111-1111-111111111111 zone=fr-par-1 ARGS: - image-id + image-id UUID of the image you want to get [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-placement-group-delete-usage.golden b/cmd/scw/testdata/test-all-usage-instance-placement-group-delete-usage.golden index 4ed88c7fd5..cd07ecad41 100644 --- a/cmd/scw/testdata/test-all-usage-instance-placement-group-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-placement-group-delete-usage.golden @@ -13,7 +13,7 @@ EXAMPLES: scw instance placement-group delete 11111111-1111-1111-1111-111111111111 zone=fr-par-1 ARGS: - placement-group-id + placement-group-id UUID of the placement group you want to delete [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-placement-group-get-usage.golden b/cmd/scw/testdata/test-all-usage-instance-placement-group-get-usage.golden index a3d0a8c581..694a2c8125 100644 --- a/cmd/scw/testdata/test-all-usage-instance-placement-group-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-placement-group-get-usage.golden @@ -10,7 +10,7 @@ EXAMPLES: scw instance placement-group get 6c15f411-3b6f-402d-8eba-ae24ef9254e9 ARGS: - placement-group-id + placement-group-id UUID of the placement group you want to get [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-security-group-delete-usage.golden b/cmd/scw/testdata/test-all-usage-instance-security-group-delete-usage.golden index 64bd76c7ec..c5902131e0 100644 --- a/cmd/scw/testdata/test-all-usage-instance-security-group-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-security-group-delete-usage.golden @@ -10,7 +10,7 @@ EXAMPLES: scw instance security-group delete 69e17c83-9945-47ac-8b29-8c1ad050ee83 ARGS: - security-group-id + security-group-id UUID of the security group you want to delete [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-security-group-get-usage.golden b/cmd/scw/testdata/test-all-usage-instance-security-group-get-usage.golden index 9426a2e285..5f4e4ad217 100644 --- a/cmd/scw/testdata/test-all-usage-instance-security-group-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-security-group-get-usage.golden @@ -10,7 +10,7 @@ EXAMPLES: scw instance security-group get a3244331-5d32-4e36-9bf9-b60233e201c7 ARGS: - security-group-id + security-group-id UUID of the security group you want to get [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-server-get-usage.golden b/cmd/scw/testdata/test-all-usage-instance-server-get-usage.golden index 7b459295dd..03c0c99401 100644 --- a/cmd/scw/testdata/test-all-usage-instance-server-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-server-get-usage.golden @@ -10,7 +10,7 @@ EXAMPLES: scw instance server get 94ededdf-358d-4019-9886-d754f8a2e78d ARGS: - server-id + server-id UUID of the server you want to get [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-snapshot-delete-usage.golden b/cmd/scw/testdata/test-all-usage-instance-snapshot-delete-usage.golden index b3b87be60c..71ec6a8346 100644 --- a/cmd/scw/testdata/test-all-usage-instance-snapshot-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-snapshot-delete-usage.golden @@ -13,7 +13,7 @@ EXAMPLES: scw instance snapshot delete 11111111-1111-1111-1111-111111111111 zone=fr-par-1 ARGS: - snapshot-id + snapshot-id UUID of the snapshot you want to delete [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-snapshot-get-usage.golden b/cmd/scw/testdata/test-all-usage-instance-snapshot-get-usage.golden index 0cd3ad2237..25616cb89f 100644 --- a/cmd/scw/testdata/test-all-usage-instance-snapshot-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-snapshot-get-usage.golden @@ -13,7 +13,7 @@ EXAMPLES: scw instance snapshot get 11111111-1111-1111-1111-111111111111 zone=fr-par-1 ARGS: - snapshot-id + snapshot-id UUID of the snapshot you want to get [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-volume-delete-usage.golden b/cmd/scw/testdata/test-all-usage-instance-volume-delete-usage.golden index c9ef862fc4..49c7a2e15e 100644 --- a/cmd/scw/testdata/test-all-usage-instance-volume-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-volume-delete-usage.golden @@ -10,7 +10,7 @@ EXAMPLES: scw instance volume delete af136619-bc59-4b48-a0ed-ed7dceaad9a6 ARGS: - volume-id + volume-id UUID of the volume you want to delete [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-instance-volume-get-usage.golden b/cmd/scw/testdata/test-all-usage-instance-volume-get-usage.golden index 2438c46046..9707b517c4 100644 --- a/cmd/scw/testdata/test-all-usage-instance-volume-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-volume-get-usage.golden @@ -10,7 +10,7 @@ EXAMPLES: scw instance volume get b70e9a0e-28b1-4542-bb9b-06d2d6debc0f ARGS: - volume-id + volume-id UUID of the volume you want to get [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-rdb-backup-export-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-backup-export-usage.golden index e9d9e8e3ff..600b5834ad 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-backup-export-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-backup-export-usage.golden @@ -6,7 +6,7 @@ USAGE: scw rdb backup export [arg=value ...] ARGS: - database-backup-id + database-backup-id UUID of the database backup you want to export [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-get-certificate-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-get-certificate-usage.golden new file mode 100644 index 0000000000..44af9be800 --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-rdb-instance-get-certificate-usage.golden @@ -0,0 +1,19 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Get the TLS certificate of an instance. + +USAGE: + scw rdb instance get-certificate [arg=value ...] + +ARGS: + instance-id UUID of the instance + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + +FLAGS: + -h, --help help for get-certificate + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-get-metrics-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-get-metrics-usage.golden new file mode 100644 index 0000000000..8197ca9c1f --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-rdb-instance-get-metrics-usage.golden @@ -0,0 +1,22 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Get database instance metrics. + +USAGE: + scw rdb instance get-metrics [arg=value ...] + +ARGS: + instance-id UUID of the instance + [start-date] Start date to gather metrics from + [end-date] End date to gather metrics from + [metric-name] Name of the metric to gather + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) + +FLAGS: + -h, --help help for get-metrics + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden index c57e7f9f01..ff0cb2be0c 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden @@ -6,9 +6,9 @@ USAGE: scw rdb instance upgrade [arg=value ...] ARGS: - instance-id - [node-type] (DB-DEV-S | DB-DEV-M | DB-DEV-L | DB-DEV-XL | DB-GP-XS | DB-GP-S | DB-GP-M | DB-GP-L | DB-GP-XL) - [enable-ha] + instance-id UUID of the instance you want to upgrade + [node-type] Node type of the instance you want to upgrade to (DB-DEV-S | DB-DEV-M | DB-DEV-L | DB-DEV-XL | DB-GP-XS | DB-GP-S | DB-GP-M | DB-GP-L | DB-GP-XL) + [enable-ha] Set to true to enable high availability on your instance [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) FLAGS: diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-usage.golden index 265c444249..fcb4d64dab 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-instance-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-instance-usage.golden @@ -6,16 +6,17 @@ USAGE: scw rdb instance AVAILABLE COMMANDS: - clone Clone an instance - connect Connect to an instance using locally installed CLI - create Create an instance - delete Delete an instance - get Get an instance - list List instances - metrics Get instance metrics - update Update an instance - upgrade Upgrade an instance to an higher instance type - wait Wait for an instance to reach a stable state + clone Clone an instance + connect Connect to an instance using locally installed CLI + create Create an instance + delete Delete an instance + get Get an instance + get-certificate Get the TLS certificate of an instance + get-metrics Get instance metrics + list List instances + update Update an instance + upgrade Upgrade an instance to an higher instance type + wait Wait for an instance to reach a stable state FLAGS: -h, --help help for instance diff --git a/cmd/scw/testdata/test-all-usage-rdb-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-usage.golden index 59a0b050f2..c7cdb0d659 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-usage.golden @@ -8,7 +8,6 @@ USAGE: AVAILABLE COMMANDS: acl Access Control List (ACL) management commands backup Backup management commands - certificate Instance TLS certificate management commands database Database management commands engine Database engines commands instance Instance management commands diff --git a/internal/e2e/testdata/test-human-delete-usage.golden b/internal/e2e/testdata/test-human-delete-usage.golden index ada42c87e2..873e457ce8 100644 --- a/internal/e2e/testdata/test-human-delete-usage.golden +++ b/internal/e2e/testdata/test-human-delete-usage.golden @@ -6,7 +6,7 @@ USAGE: scw test human delete [arg=value ...] ARGS: - human-id + human-id UUID of the human you want to delete [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) FLAGS: diff --git a/internal/e2e/testdata/test-human-get-usage.golden b/internal/e2e/testdata/test-human-get-usage.golden index c1f644977f..d587704631 100644 --- a/internal/e2e/testdata/test-human-get-usage.golden +++ b/internal/e2e/testdata/test-human-get-usage.golden @@ -6,7 +6,7 @@ USAGE: scw test human get [arg=value ...] ARGS: - human-id + human-id UUID of the human you want to get [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) FLAGS: diff --git a/internal/e2e/testdata/test-human-run-usage.golden b/internal/e2e/testdata/test-human-run-usage.golden index 9999f46200..f12cf0c917 100644 --- a/internal/e2e/testdata/test-human-run-usage.golden +++ b/internal/e2e/testdata/test-human-run-usage.golden @@ -11,7 +11,7 @@ EXAMPLES: scw test human run xxxxx ARGS: - human-id + human-id UUID of the human you want to make run [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par) FLAGS: diff --git a/internal/e2e/testdata/test-human-update-usage.golden b/internal/e2e/testdata/test-human-update-usage.golden index 150abf965f..5719a800b8 100644 --- a/internal/e2e/testdata/test-human-update-usage.golden +++ b/internal/e2e/testdata/test-human-update-usage.golden @@ -6,7 +6,7 @@ USAGE: scw test human update [arg=value ...] ARGS: - human-id + human-id UUID of the human you want to update [height] [shoe-size] [altitude-in-meter] diff --git a/internal/namespaces/account/v2alpha1/account_cli.go b/internal/namespaces/account/v2alpha1/account_cli.go index fc4ab21cfb..1a95bf5489 100644 --- a/internal/namespaces/account/v2alpha1/account_cli.go +++ b/internal/namespaces/account/v2alpha1/account_cli.go @@ -216,6 +216,7 @@ func accountSSHKeyUpdate() *core.Command { }, { Name: "name", + Short: `Name of the SSH key`, Required: false, Positional: false, }, diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index 9ffb4e5487..8f3bf1d1ba 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -441,6 +441,7 @@ func instanceServerGet() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "server-id", + Short: `UUID of the server you want to get`, Required: true, Positional: true, }, @@ -828,6 +829,7 @@ func instanceImageGet() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "image-id", + Short: `UUID of the image you want to get`, Required: true, Positional: true, }, @@ -957,6 +959,7 @@ func instanceImageDelete() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "image-id", + Short: `UUID of the image you want to delete`, Required: true, Positional: true, }, @@ -1096,6 +1099,7 @@ func instanceSnapshotGet() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "snapshot-id", + Short: `UUID of the snapshot you want to get`, Required: true, Positional: true, }, @@ -1133,6 +1137,7 @@ func instanceSnapshotDelete() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "snapshot-id", + Short: `UUID of the snapshot you want to delete`, Required: true, Positional: true, }, @@ -1341,6 +1346,7 @@ func instanceVolumeGet() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "volume-id", + Short: `UUID of the volume you want to get`, Required: true, Positional: true, }, @@ -1428,6 +1434,7 @@ func instanceVolumeDelete() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "volume-id", + Short: `UUID of the volume you want to delete`, Required: true, Positional: true, }, @@ -1599,6 +1606,7 @@ func instanceSecurityGroupGet() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "security-group-id", + Short: `UUID of the security group you want to get`, Required: true, Positional: true, }, @@ -1632,6 +1640,7 @@ func instanceSecurityGroupDelete() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "security-group-id", + Short: `UUID of the security group you want to delete`, Required: true, Positional: true, }, @@ -1787,6 +1796,7 @@ func instancePlacementGroupGet() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "placement-group-id", + Short: `UUID of the placement group you want to get`, Required: true, Positional: true, }, @@ -1880,6 +1890,7 @@ func instancePlacementGroupDelete() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "placement-group-id", + Short: `UUID of the placement group you want to delete`, Required: true, Positional: true, }, diff --git a/internal/namespaces/rdb/v1/rdb_cli.go b/internal/namespaces/rdb/v1/rdb_cli.go index 75b6a47830..65d973ccc9 100644 --- a/internal/namespaces/rdb/v1/rdb_cli.go +++ b/internal/namespaces/rdb/v1/rdb_cli.go @@ -30,7 +30,6 @@ func GetGeneratedCommands() *core.Commands { rdbDatabase(), rdbNodeType(), rdbLog(), - rdbCertificate(), rdbBackupList(), rdbBackupCreate(), rdbBackupGet(), @@ -46,10 +45,10 @@ func GetGeneratedCommands() *core.Commands { rdbInstanceCreate(), rdbInstanceUpdate(), rdbInstanceDelete(), - rdbCertificateGet(), + rdbInstanceGetCertificate(), rdbLogPrepare(), rdbLogList(), - rdbInstanceMetrics(), + rdbInstanceGetMetrics(), rdbSettingsAdd(), rdbSettingsDelete(), rdbACLList(), @@ -174,15 +173,6 @@ func rdbLog() *core.Command { } } -func rdbCertificate() *core.Command { - return &core.Command{ - Short: `Instance TLS certificate management commands`, - Long: `Instance TLS certificate management commands.`, - Namespace: "rdb", - Resource: "certificate", - } -} - func rdbBackupList() *core.Command { return &core.Command{ Short: `List database backups`, @@ -427,6 +417,7 @@ func rdbBackupExport() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "database-backup-id", + Short: `UUID of the database backup you want to export`, Required: true, Positional: true, }, @@ -520,16 +511,19 @@ func rdbInstanceUpgrade() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "instance-id", + Short: `UUID of the instance you want to upgrade`, Required: true, Positional: true, }, { Name: "node-type", + Short: `Node type of the instance you want to upgrade to`, Required: false, Positional: false, }, { Name: "enable-ha", + Short: `Set to true to enable high availability on your instance`, Required: false, Positional: false, }, @@ -814,13 +808,13 @@ func rdbInstanceDelete() *core.Command { } } -func rdbCertificateGet() *core.Command { +func rdbInstanceGetCertificate() *core.Command { return &core.Command{ Short: `Get the TLS certificate of an instance`, Long: `Get the TLS certificate of an instance.`, Namespace: "rdb", - Resource: "certificate", - Verb: "get", + Resource: "instance", + Verb: "get-certificate", ArgsType: reflect.TypeOf(rdb.GetInstanceCertificateRequest{}), ArgSpecs: core.ArgSpecs{ { @@ -915,13 +909,13 @@ func rdbLogList() *core.Command { } } -func rdbInstanceMetrics() *core.Command { +func rdbInstanceGetMetrics() *core.Command { return &core.Command{ Short: `Get instance metrics`, Long: `Get database instance metrics.`, Namespace: "rdb", Resource: "instance", - Verb: "metrics", + Verb: "get-metrics", ArgsType: reflect.TypeOf(rdb.GetInstanceMetricsRequest{}), ArgSpecs: core.ArgSpecs{ { diff --git a/internal/namespaces/test/v1/test_cli.go b/internal/namespaces/test/v1/test_cli.go index 5b9d1274d7..98bc21d081 100644 --- a/internal/namespaces/test/v1/test_cli.go +++ b/internal/namespaces/test/v1/test_cli.go @@ -148,6 +148,7 @@ func testHumanGet() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "human-id", + Short: `UUID of the human you want to get`, Required: true, Positional: true, }, @@ -255,6 +256,7 @@ func testHumanUpdate() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "human-id", + Short: `UUID of the human you want to update`, Required: true, Positional: true, }, @@ -328,6 +330,7 @@ func testHumanDelete() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "human-id", + Short: `UUID of the human you want to delete`, Required: true, Positional: true, }, @@ -355,6 +358,7 @@ func testHumanRun() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "human-id", + Short: `UUID of the human you want to make run`, Required: true, Positional: true, }, @@ -389,6 +393,7 @@ func testHumanSmoke() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "human-id", + Short: `UUID of the human you want to make smoking`, Required: true, Positional: true, },