UNPKG

648 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.VersionCommand = void 0;
4const command_1 = require("../lib/command");
5class VersionCommand extends command_1.Command {
6 async getMetadata() {
7 return {
8 name: 'version',
9 type: 'global',
10 summary: 'Returns the current CLI version',
11 groups: ["hidden" /* HIDDEN */],
12 };
13 }
14 async run(inputs, options) {
15 // can't use logger--see https://github.com/ionic-team/ionic-cli/issues/2507
16 process.stdout.write(this.env.ctx.version + '\n');
17 }
18}
19exports.VersionCommand = VersionCommand;