Skip to content

Commit 131a650

Browse files
committed
delete cassette
1 parent 30fe940 commit 131a650

File tree

5 files changed

+35
-43
lines changed

5 files changed

+35
-43
lines changed

cmd/scw/testdata/test-all-usage-mongodb-instance-create-usage.cassette.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
This command opens the current settings of your RDB instance in your $EDITOR.
4+
You can modify the values and save the file to apply the new configuration.
5+
6+
USAGE:
7+
scw rdb instance edit-settings <instance-id ...> [arg=value ...]
8+
9+
EXAMPLES:
10+
Edit instance settings in YAML
11+
scw rdb instance settings-edit 12345678-1234-1234-1234-123456789abc --region=fr-par --mode=yaml
12+
13+
Edit instance settings in JSON
14+
scw rdb instance settings-edit 12345678-1234-1234-1234-123456789abc --region=fr-par --mode=json
15+
16+
ARGS:
17+
instance-id ID of the instance
18+
[mode=yaml] marshaling used when editing data (yaml | json)
19+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
20+
21+
FLAGS:
22+
-h, --help help for edit-settings
23+
24+
GLOBAL FLAGS:
25+
-c, --config string The path to the config file
26+
-D, --debug Enable debug mode
27+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
28+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-rdb-instance-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ AVAILABLE COMMANDS:
1414
connect Connect to an instance using locally installed CLI
1515
create Create a Database Instance
1616
delete Delete a Database Instance
17+
edit-settings Edit instance settings in your default editor
1718
get Get a Database Instance
1819
get-certificate Get the TLS certificate of a Database Instance
1920
get-metrics Get Database Instance metrics
2021
list List Database Instances
2122
renew-certificate Renew the TLS certificate of a Database Instance
2223
restart Restart Database Instance
23-
settings-edit Edit instance settings in your default editor
2424
update Update an instance
2525
upgrade Upgrade a Database Instance
2626

internal/namespaces/rdb/v1/custom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func GetCommands() *core.Commands {
4949
instanceConnectCommand(),
5050
instanceWaitCommand(),
5151
userGetURLCommand(),
52-
instanceSettingsEditCommand(),
52+
instanceEditSettingsCommand(),
5353
))
5454
cmds.MustFind("rdb", "acl", "add").Override(aclAddBuilder)
5555
cmds.MustFind("rdb", "acl", "delete").Override(aclDeleteBuilder)

internal/namespaces/rdb/v1/custom_instance.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -927,8 +927,8 @@ func instanceConnectCommand() *core.Command {
927927
}
928928
}
929929

930-
func instanceSettingsEditCommand() *core.Command {
931-
type settingsEditArgs struct {
930+
func instanceEditSettingsCommand() *core.Command {
931+
type editSettingsArgs struct {
932932
InstanceID string `arg:"positional,required"`
933933
Region scw.Region `arg:"required"`
934934
Mode editor.MarshalMode
@@ -937,11 +937,11 @@ func instanceSettingsEditCommand() *core.Command {
937937
return &core.Command{
938938
Namespace: "rdb",
939939
Resource: "instance",
940-
Verb: "settings-edit",
940+
Verb: "edit-settings",
941941
Short: "Edit instance settings in your default editor",
942942
Long: `This command opens the current settings of your RDB instance in your $EDITOR.
943943
You can modify the values and save the file to apply the new configuration.`,
944-
ArgsType: reflect.TypeOf(settingsEditArgs{}),
944+
ArgsType: reflect.TypeOf(editSettingsArgs{}),
945945
ArgSpecs: core.ArgSpecs{
946946
{
947947
Name: "instance-id",
@@ -963,7 +963,7 @@ You can modify the values and save the file to apply the new configuration.`,
963963
},
964964
},
965965
Run: func(ctx context.Context, argsI interface{}) (interface{}, error) {
966-
args := argsI.(*settingsEditArgs)
966+
args := argsI.(*editSettingsArgs)
967967

968968
client := core.ExtractClient(ctx)
969969
api := rdbSDK.NewAPI(client)

0 commit comments

Comments
 (0)