-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): refactor config commands (#1032)
- Loading branch information
Showing
29 changed files
with
585 additions
and
324 deletions.
There are no files selected for viewing
9 changes: 6 additions & 3 deletions
9
cmd/scw/testdata/test-all-usage-config-get-usage.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...config-delete-profile-usage.stderr.golden → ...config-profile-delete-usage.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...l-usage-config-delete-usage.stderr.golden → ...-usage-config-profile-usage.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
Allows the deletion of a profile from the config file | ||
|
||
USAGE: | ||
scw config delete <command> | ||
scw config profile <command> | ||
|
||
AVAILABLE COMMANDS: | ||
profile Delete a profile from the config file | ||
delete Delete a profile from the config file | ||
|
||
FLAGS: | ||
-h, --help help for delete | ||
-h, --help help for profile | ||
|
||
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. | ||
Use "scw config profile [command] --help" for more information about a command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
cmd/scw/testdata/test-all-usage-config-unset-usage.stderr.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.