add: uninstall prompt when no version is specified #180
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.
Problem
When there are multiple versions of neovim installed e.g., multiple nightly rollbacks, it can be easier to have a prompt
so the user can select which versions he wants to uninstall without having to type them one by one. It can also be used for normal uninstalls, which can be helpfull too.
Proposal
This commit adds a multiselect prompt with all versions that aren't in use when
bob uninstall
is run without arguments:After selection, it confirms the user's choice and uninstalls the selected neovim versions:
Thank you very much for this project! This is my first time writing rust so if there are somethings that should be changed please let me know and I will corrected them asap.