You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have the bee config-clear file option command to clear (remove) an option from a config file.
What's the use case? Well, if you used bee config-set file option value but mistyped the name of the option, you would have created an option that you can no longer remove via bee.
Or at least that would be possible if there were not a bug in bee config-set. Although the code clearly anticipates creating a nonexistent option (the switch statement has a branch for a NULL result for $existing_type), that branch is currently unreachable. So the PR for this issue fixes that bug, as well as implementing the bee config-clear command.
And the reason I'm doing the two things together is that we need both working functions for the test code, which I've added for both functions (creating a nonexistent option, then subsequently clearing it).
The text was updated successfully, but these errors were encountered:
It would be nice to have the
bee config-clear file option
command to clear (remove) an option from a config file.What's the use case? Well, if you used
bee config-set file option value
but mistyped the name of the option, you would have created an option that you can no longer remove viabee
.Or at least that would be possible if there were not a bug in
bee config-set
. Although the code clearly anticipates creating a nonexistent option (theswitch
statement has a branch for a NULL result for$existing_type
), that branch is currently unreachable. So the PR for this issue fixes that bug, as well as implementing thebee config-clear
command.And the reason I'm doing the two things together is that we need both working functions for the test code, which I've added for both functions (creating a nonexistent option, then subsequently clearing it).
The text was updated successfully, but these errors were encountered: