UX: Sort plugin list and plugin search output by plugin name #646
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.
What this PR does / why we need it
This pull request sorts the plugin list output first by plugin name, and then by plugin target. Sorting the list by name and then target provides a better user experience for the end user by organizing the plugins in a consistent and easy to scan order.
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Before the fix, the
tanzu plugin list
output was not sorted by the plugin's name and then target. After applying the fix, the plugins list output is now sorted by plugin name first, and then by target.tanzu plugin list
, below is the output:2.a) Before Fix:
tanzu plugin list
output:2.b) After Fix:
tanzu plugin list
output:You can see the plugins has been sorted by plugin name's, and the 'cluster' plugin has been sorted by target.
tanzu plugin search
, below is the output:3.a) Before fix:
tanzu plugin search
output:3.b) After Fix:
tanzu plugin search
output:Release note
Additional information
Special notes for your reviewer