Skip to content

Commit 39375f6

Browse files
authored
Merge pull request #129 from NativeScript/buhov/custom-analytics-client
Differentiate the CLI analytics traffic coming from VSCode by adding custom VSCode analytics client
2 parents 4f44e26 + 9eb8b02 commit 39375f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/project/nativeScriptCli.ts

+2
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,15 @@ export class NativeScriptCli {
8383
}
8484

8585
public executeSync(args: string[], cwd: string): string {
86+
args.unshift("--analyticsClient", "VSCode");
8687
let command: string = `${this._path} ${args.join(' ')}`;
8788
this._logger.log(`[NativeScriptCli] execute: ${command}`, Tags.FrontendMessage);
8889

8990
return execSync(command, { encoding: "utf8", cwd: cwd, shell: this._shellPath}).toString().trim();
9091
}
9192

9293
public execute(args: string[], cwd: string): ChildProcess {
94+
args.unshift("--analyticsClient", "VSCode");
9395
let command: string = `${this._path} ${args.join(' ')}`;
9496
this._logger.log(`[NativeScriptCli] execute: ${command}`, Tags.FrontendMessage);
9597

0 commit comments

Comments
 (0)