MCPcopy Create free account
hub / github.com/acode/cli / VersionCommand

Class VersionCommand

cli/commands/version.js:5–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3const Command = require('cmnd').Command;
4
5class VersionCommand extends Command {
6
7 constructor() {
8
9 super('version');
10
11 }
12
13 help() {
14
15 return {
16 description: 'Returns currently installed version of Autocode command line tools'
17 };
18
19 }
20
21 run(params, callback) {
22
23 let pkg = require('../../package.json');
24 callback(null, pkg.version);
25
26 }
27
28}
29
30module.exports = VersionCommand;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected