UNPKG

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