Skip to content

Commit

Permalink
[cli] track invocation of vercel alias * (#12250)
Browse files Browse the repository at this point in the history
I missed this as part of #12194. Tests didn't catch this because we can't test `main()` in the current setup 🙃
  • Loading branch information
trek authored Oct 8, 2024
1 parent ae724f5 commit a85903f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-pens-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vercel": patch
---

[cli] track invocation of `vercel alias *`
1 change: 1 addition & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ const main = async () => {
let func: any;
switch (targetCommand) {
case 'alias':
telemetry.trackCliCommandAlias(userSuppliedSubCommand);
func = require('./commands/alias').default;
break;
case 'bisect':
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/src/util/telemetry/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ export class RootTelemetryClient extends TelemetryClient {
});
}

trackCliCommandAlias(actual: string) {
this.trackCliCommand({
command: 'alias',
value: actual,
});
}

trackCPUs() {
super.trackCPUs();
}
Expand Down

0 comments on commit a85903f

Please sign in to comment.