(options)
| 12 | availableOptions: [{ name: 'verbose', type: Boolean, default: false }], |
| 13 | |
| 14 | run(options) { |
| 15 | this.printVersion('ember-cli', emberCLIVersion()); |
| 16 | |
| 17 | let versions = process.versions; |
| 18 | versions['os'] = `${process.platform} ${process.arch}`; |
| 19 | |
| 20 | let alwaysPrint = ['node', 'os']; |
| 21 | |
| 22 | for (let module in versions) { |
| 23 | if (options.verbose || alwaysPrint.indexOf(module) > -1) { |
| 24 | this.printVersion(module, versions[module]); |
| 25 | } |
| 26 | } |
| 27 | }, |
| 28 | |
| 29 | printVersion(module, version) { |
| 30 | this.ui.writeLine(`${module}: ${version}`); |
nothing calls this directly
no test coverage detected