Skip to content

Commit 5ec6d32

Browse files
committed
add test
1 parent 23e2bb1 commit 5ec6d32

18 files changed

+471
-241
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
11
Allows the deletion of a profile from the config file
22

3-
USAGE:
4-
scw config delete <command>
5-
6-
AVAILABLE COMMANDS:
7-
profile Delete a profile from the config file
8-
9-
FLAGS:
10-
-h, --help help for delete
11-
12-
GLOBAL FLAGS:
13-
-D, --debug Enable debug mode
14-
-o, --output string Output format: json or human
15-
-p, --profile string The config profile to use
16-
17-
Use "scw config delete [command] --help" for more information about a command.

cmd/scw/testdata/test-all-usage-config-get-usage.stderr.golden

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
Get a line from the config file
1+
Get a value from the config file
22

33
USAGE:
4-
scw config get
4+
scw config get <key ...> [arg=value ...]
55

66
EXAMPLES:
77
Get the default organization ID
88
scw config get default_organization_id
99

1010
Get the default region of the profile 'prod'
11-
scw config get prod.default_region
11+
scw -p prod config get default_region
12+
13+
ARGS:
14+
key the config config key name to get (send_telemetry | access_key | secret_key | api_url | insecure | default_organization_id | default_region | default_zone)
1215

1316
FLAGS:
1417
-h, --help help for get

cmd/scw/testdata/test-all-usage-config-delete-profile-usage.stderr.golden renamed to cmd/scw/testdata/test-all-usage-config-profile-delete-usage.stderr.golden

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Delete a profile from the config file
22

33
USAGE:
4-
scw config delete profile [arg=value ...]
4+
scw config profile delete <name ...> [arg=value ...]
55

66
ARGS:
77
name
88

99
FLAGS:
10-
-h, --help help for profile
10+
-h, --help help for delete
1111

1212
GLOBAL FLAGS:
1313
-D, --debug Enable debug mode

cmd/scw/testdata/test-all-usage-config-unset-usage.stderr.golden

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
Unset a line from the config file
22

33
USAGE:
4-
scw config unset
4+
scw config unset <key ...> [arg=value ...]
5+
6+
ARGS:
7+
key the config config key name to unset (send_telemetry | access_key | secret_key | api_url | insecure | default_organization_id | default_region | default_zone)
58

69
FLAGS:
710
-h, --help help for unset

0 commit comments

Comments
 (0)