Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit bef85e6

Browse files
committed
Changing telemetry message
1 parent eefd05a commit bef85e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli/scripts/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const getUserConfig = async () => {
3838
const userConfig = await getUserConfig()
3939
userConfig.lastVersionCheck = new Date()
4040
if (userConfig.telemetry === null) {
41-
const disableTelemetry = await cli.prompt(chalk.red('Telemetry is disabled. Would you like to opt in? Only command and flags usage will be sent. (Y/N)'))
41+
const disableTelemetry = await cli.prompt(chalk.red('Help us improve products by allowing Microsoft to collect anonymous command and flags usage: (Y/N)'))
4242
if (disableTelemetry === 'Y' || disableTelemetry === 'y') {
4343
userConfig.telemetry = true
4444
console.log(chalk.blue('Telemetry has been enabled.'))

packages/cli/src/hooks/init/inithook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const hook: Hook<'init'> = async function (opts) {
6666
// Ensure telemetry is set
6767
try {
6868
if (userConfig.telemetry === null) {
69-
const disableTelemetry = await cli.prompt(chalk.red('Telemetry is disabled. Would you like to opt in?. Only command and flags usage will be sent. (Y/N)'))
69+
const disableTelemetry = await cli.prompt(chalk.red('Help us improve products by allowing Microsoft to collect anonymous command and flags usage: (Y/N)'))
7070
if (disableTelemetry === 'Y' || disableTelemetry === 'y') {
7171
userConfig.telemetry = true
7272
this.log(chalk.blue('Telemetry has been enabled.'))

0 commit comments

Comments
 (0)