forked from vmware-tanzu/tanzu-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update telemetry to support command-remapping (vmware-tanzu#848)
- When building the command-tree of each plugin, we include all root commands since the plugin can provide many such commands; before a plugin only provided its own name as a root command. - When building the command-tree of each plugin, we also include any applicable target. This is important so telemetry can map the command provided by the user with the command tree. - When saving a command invocation to telemetry, we need to pass the entire command path, since the plugin name is no longer necessarily a prefix in the invocation. - Fix finding aliases by determining the source command-path within the plugin command-tree and invoking it with "-h". - To allow older CLIs (< 1.5.3) to continue using the old command-tree format for telemetry, this commit uses a new command_tree_v2.yaml file for the new format. Switching back and forth from new to old CLIs will therefore not mess with the same plugin command-tree cache and will keep telemetry in a better shape for older CLIs. Signed-off-by: Marc Khouzam <[email protected]>
- Loading branch information
1 parent
d756c78
commit 496b678
Showing
10 changed files
with
719 additions
and
234 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.