'use strict';
const Command = require('../models/command');
const emberCLIVersion = require('../utilities/version-utils').emberCLIVersion;
module.exports = Command.extend({
name: 'version',
description: 'outputs ember-cli version',
aliases: ['v', '--version', '-v'],
works: 'everywhere',
availableOptions: [
{ name: 'verbose', type: Boolean, default: false },
],
run(options) {
this.printVersion('ember-cli', emberCLIVersion());
let versions = process.versions;
versions['os'] = `${process.platform} ${process.arch}`;
let alwaysPrint = ['node', 'os'];
for (let module in versions) {
if (options.verbose || alwaysPrint.indexOf(module) > -1) {
this.printVersion(module, versions[module]);
}
}
},
printVersion(module, version) {
this.ui.writeLine(`${module}: ${version}`);
},
});
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|