nodal
Version:
An API Server and Framework for node.js
34 lines (19 loc) • 508 B
JavaScript
;
const Command = require('cmnd').Command;
const colors = require('colors/safe');
class VersionCommand extends Command {
constructor() {
super('version');
}
help() {
return {
description: 'Shows your currently globally installed Nodal version'
};
}
run(params, callback) {
let version = require('../../package.json').version;
console.log(colors.green.bold('Nodal Version: ') + version);
callback(null);
}
}
module.exports = VersionCommand;