Closed JoshuaWilkes closed 1 year ago
Because we're parsing a string from the CLI, I have simplified the --value-bool
, --value-str
and --value-int
into a single flag --value
. This will help avoid a problem where a user accidentally gives the wrong flag for a particular config value
Describe your changes
granted settings set
command which can set the value for string, int and bool config fieldsgranted settings set -s DisableUsageTips -vb
will configure their installation to not show the tip.Type of change
Issue and Documentation
-
Testing
Please describe how the reviewer can test the changes. Also include steps to reproduce the testing environment.
make cli
try running
dgranted settings set -s DisableUsageTips -vb
followed byassume
do not supply a profile name, expect not to see a usage tip.try running
dgranted settings set -s DisableUsageTips -vb false
followed byassume
do not supply a profile name, expect to see the prompt with the tip on usage.run
dgranted settings set
and see that you can update other settingsChecklist before requesting a review