Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config: Unset the default config value
This PR make sure that if user try to set a default value for a config property then it just unset that property and default value is used. It will also allow not to have default value in the viper config file. Also add `UpdateDefaults` to set and get config handler so API can also make use of it. Without this Patch ``` $ crc config set preset microshift $ crc config set cpus 2 $ crc config set preset openshift $ cat ~/.crc/crc.json { "cpus": 2, "preset": "openshift" } ``` After this patch `~/.crc/crc.json` going to be empty and openshift preset is going to use default `cpus` as `4`.
- Loading branch information
1 parent
31f0f27
commit f9a0a4a
Showing
3 changed files
with
16 additions
and
2 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