-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt telemetry logic for command-mapping
- 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 determinining the source command-path within the plugin command-tree and invoking it with "-h". - Clear the previous telemety command-tree if the last CLI that was run was < 1.5.3. This is because the command-tree generated by 1.5.3 is different than for previous versions. Signed-off-by: Marc Khouzam <[email protected]>
- Loading branch information
1 parent
1df0c5e
commit 6b69507
Showing
15 changed files
with
866 additions
and
202 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.