Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome-quere committed Jun 1, 2020
1 parent 23e2bb1 commit 5ec6d32
Show file tree
Hide file tree
Showing 18 changed files with 471 additions and 241 deletions.
15 changes: 0 additions & 15 deletions cmd/scw/testdata/test-all-usage-config-delete-usage.stderr.golden
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
Allows the deletion of a profile from the config file

USAGE:
scw config delete <command>

AVAILABLE COMMANDS:
profile Delete a profile from the config file

FLAGS:
-h, --help help for delete

GLOBAL FLAGS:
-D, --debug Enable debug mode
-o, --output string Output format: json or human
-p, --profile string The config profile to use

Use "scw config delete [command] --help" for more information about a command.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
Get a line from the config file
Get a value from the config file

USAGE:
scw config get
scw config get <key ...> [arg=value ...]

EXAMPLES:
Get the default organization ID
scw config get default_organization_id

Get the default region of the profile 'prod'
scw config get prod.default_region
scw -p prod config get default_region

ARGS:
key the config config key name to get (send_telemetry | access_key | secret_key | api_url | insecure | default_organization_id | default_region | default_zone)

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Delete a profile from the config file

USAGE:
scw config delete profile [arg=value ...]
scw config profile delete <name ...> [arg=value ...]

ARGS:
name

FLAGS:
-h, --help help for profile
-h, --help help for delete

GLOBAL FLAGS:
-D, --debug Enable debug mode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
Unset a line from the config file

USAGE:
scw config unset
scw config unset <key ...> [arg=value ...]

ARGS:
key the config config key name to unset (send_telemetry | access_key | secret_key | api_url | insecure | default_organization_id | default_region | default_zone)

FLAGS:
-h, --help help for unset
Expand Down
Loading

0 comments on commit 5ec6d32

Please sign in to comment.