MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / run

Function run

lib/commands/version.js:14–27  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

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}`);

Callers

nothing calls this directly

Calls 1

emberCLIVersionFunction · 0.85

Tested by

no test coverage detected