-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for "tanzu plugin delete all --target" #537
Add support for "tanzu plugin delete all --target" #537
Conversation
584cfa7
to
2a988fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! nice feature to delete all plugins specific to target
2a988fa
to
8b2024b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, and a really nice set of tests!
nit: I find the the autocomplete text for each plugin item a little confusing in the first few viewings, probably because it does not match up with the text for all
(which I totally understand is different), with the main difference being that the former mentions target before anything else. Let me think a little more and see if I can propose any alternative
This commit allows a user to delete all plugins for a specified target. Signed-off-by: Marc Khouzam <kmarc@vmware.com>
Yeah, this was not one I am happy with. In #513 I started by using the description of the plugin; but then I thought that a user will familiar with the plugin since it is already installed, so I wondered what would the user want to know when preparing to delete a plugin? And I came up with showing the target, so the user would notice in case they were deleting a plugin for the wrong target. The actual printout is not very pretty. |
8b2024b
to
d3cd20a
Compare
Since shell completion descriptions can be changed later (not subject to backwards-compatibility), I will go ahead and merge this and we can see how to improve the completion descriptions as we start using them. |
Some suggestions:
|
This commit allows a user to delete all plugins for a specified target. Signed-off-by: Marc Khouzam <kmarc@vmware.com>
This commit allows a user to delete all plugins for a specified target. Signed-off-by: Marc Khouzam <kmarc@vmware.com> (cherry picked from commit 5dbc0d9)
This commit allows a user to delete all plugins for a specified target. Signed-off-by: Marc Khouzam <kmarc@vmware.com> (cherry picked from commit 5dbc0d9)
This commit allows a user to delete all plugins for a specified target. Signed-off-by: Marc Khouzam <kmarc@vmware.com> (cherry picked from commit 5dbc0d9)
What this PR does / why we need it
This commit allows a user to delete all plugins for a specified target.
The commit teaches the CLI to accept the
all
argument for thetanzu plugin delete
command. When theall
argument is used however, the--target
flag must be used.Which issue(s) this PR fixes
Fixes # N/A
Describe testing done for PR
Shell completion changes:
Release note
Additional information
Special notes for your reviewer
The shell completion aspect of theDonetanzu plugin delete
command will need to be adapted depending on which PR gets merged first, this PR or #513