UNPKG

1.2 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.TelemetryCommand = void 0;
4const color_1 = require("../lib/color");
5const command_1 = require("../lib/command");
6const errors_1 = require("../lib/errors");
7class 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" /* 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}
30exports.TelemetryCommand = TelemetryCommand;