| 3 | const Command = require('cmnd').Command; |
| 4 | |
| 5 | class 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 | |
| 30 | module.exports = VersionCommand; |
nothing calls this directly
no outgoing calls
no test coverage detected