1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.TelemetryCommand = void 0;
|
4 | const color_1 = require("../lib/color");
|
5 | const command_1 = require("../lib/command");
|
6 | const errors_1 = require("../lib/errors");
|
7 | class TelemetryCommand extends command_1.Command {
|
8 | async getMetadata() {
|
9 | return {
|
10 | name: 'telemetry',
|
11 | type: 'global',
|
12 | summary: 'Opt in and out of telemetry',
|
13 | groups: ["hidden" ],
|
14 | inputs: [
|
15 | {
|
16 | name: 'status',
|
17 | summary: `${color_1.input('on')} or ${color_1.input('off')}`,
|
18 | },
|
19 | ],
|
20 | };
|
21 | }
|
22 | async run(inputs, options) {
|
23 | throw new errors_1.FatalException(`${color_1.input('ionic telemetry')} has been removed.\n` +
|
24 | `Please use ${color_1.input('ionic config')} directly. Examples:\n\n` +
|
25 | ` ${color_1.input('ionic config get -g telemetry')}\n` +
|
26 | ` ${color_1.input('ionic config set -g telemetry true')}\n` +
|
27 | ` ${color_1.input('ionic config set -g telemetry false')}`);
|
28 | }
|
29 | }
|
30 | exports.TelemetryCommand = TelemetryCommand;
|