ionic
Version:
A tool for creating and developing Ionic Framework mobile apps.
30 lines (29 loc) • 1.16 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const color_1 = require("../lib/color");
const command_1 = require("../lib/command");
const errors_1 = require("../lib/errors");
class TelemetryCommand extends command_1.Command {
async getMetadata() {
return {
name: 'telemetry',
type: 'global',
summary: 'Opt in and out of telemetry',
groups: ["hidden" /* HIDDEN */],
inputs: [
{
name: 'status',
summary: `${color_1.input('on')} or ${color_1.input('off')}`,
},
],
};
}
async run(inputs, options) {
throw new errors_1.FatalException(`${color_1.input('ionic telemetry')} has been removed.\n` +
`Please use ${color_1.input('ionic config')} directly. Examples:\n\n` +
` ${color_1.input('ionic config get -g telemetry')}\n` +
` ${color_1.input('ionic config set -g telemetry true')}\n` +
` ${color_1.input('ionic config set -g telemetry false')}`);
}
}
exports.TelemetryCommand = TelemetryCommand;
;