-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Improve input checking in config command
Previously you could use config to set an invalid value, which would prevent you from ever running config again to fix it. - Run config before loading the parsed config into args. This ensures that invalid config files won't prevent running config, and config itself can't be configured anyway. - Add a --delete option to config to delete keys - Validate that the given config command and option are actually valid. if invalid, suggest a list of valid options. - Error out if the provided value is invalid for the given option, and also add choices to the validity check. Topic: improveconfig Reviewers: aaron, brian-k
- Loading branch information
1 parent
08c642d
commit e9c1d3b
Showing
3 changed files
with
149 additions
and
80 deletions.
There are no files selected for viewing
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