1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const command_1 = require("../lib/command");
|
4 | class 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 | }
|
18 | exports.VersionCommand = VersionCommand;
|