The Tanzu Core CLI project provides the core functionality of the Tanzu CLI. The CLI is based on a plugin architecture where CLI command functionality can be delivered through independently developed plugin binaries
Apache License 2.0
35
stars
22
forks
source link
Enable overriding a command if its alias matches the mapping candidate. #718
This is temporary heuristic to ensure a command mapping candidate command replaces one whose alias matches the candidate's name.
An upcoming change would enable the plugin to be more explicit about what commands it intends to override.
What this PR does / why we need it
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
ran unit tests
also tested by building an installing a plugin whose invokedAs only matches an alias of an existing plugin (e.g. apps plugin's alias, "app")
observe when running
tanzu
that only the invokedAs name appears in the list of top-level invocable commandsRelease note
Additional information
Special notes for your reviewer