UNPKG

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