Conversation
Add bulk operations with confirmation prompts for destructive actions: - `tool uninstall --all` to remove all installed tools - `tool config unset <tool> --all` to remove all keys for a tool - `tool config unset --all` to remove config for all tools - `tool config unset --all <keys>` to remove specific keys from all tools - `tool config unset <tool> <keys...>` now supports multiple keys All --all operations prompt for confirmation with `Continue? [y/N]` unless -y/--yes is provided. Removes redundant `config reset` command, replaced by `config unset --all`.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tool uninstallandtool config unsetcommands via--allflagconfig resetcommand in favor of unifiedconfig unset --allsyntaxChanges
--alland-y/--yesflags toUninstallandConfigCommand::Unsetvariants; removeConfigCommand::Reset; update help examplesconfig_unsetto handle multiple keys and--allmodes; addunset_tool_keys,unset_tool_all_keys, andunset_all_toolsfunctions; addload_config_from_pathhelper; add confirmation prompts usingContinue? [y/N]patternremove_toolsto acceptallandyesparameters; add logic to fetch all installed tools when--allis used; add confirmation promptallandyesparametersTest Plan
cargo buildto verify compilationtool uninstall --helpshows new--alland-yflagstool config unset --helpshows updated syntaxtool config resetis no longer recognized (should suggestunset)tool uninstallwithout args shows error asking for--alltool config unsetwithout args shows appropriate errortool config unset bashwithout keys shows error about--all