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