-
-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathWelcome.ts
More file actions
executable file
·27 lines (24 loc) · 867 Bytes
/
Welcome.ts
File metadata and controls
executable file
·27 lines (24 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import type { Answers } from 'inquirer';
import { dim, green } from '../Helper/Logging';
import { BaseStep } from './BaseStep';
import pc from 'picocolors';
export class Welcome extends BaseStep {
private static _didShow = false;
// eslint-disable-next-line @typescript-eslint/require-await
public async emit(_answers: Answers): Promise<Answers> {
if (Welcome._didShow) {
return {};
}
if (this._argv.uninstall === false) {
green('Sentry Wizard will help you to configure your project');
dim(
`This wizard sends telemetry data and crash reports to Sentry. This helps us improve the Wizard. You can turn telemetry off at any time by running sentry-wizard ${pc.cyan(
'--disable-telemetry',
)}.`,
);
dim('Thank you for using Sentry :)');
}
Welcome._didShow = true;
return {};
}
}