UNPKG

carthage

Version:

An API Server and Framework with scaffold functions for node.js

35 lines (20 loc) 585 B
'use strict'; 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 Carthage version' }; } run(params, callback) { let version = require('../../package.json').version; console.log(colors.green.bold('Carthage Version: ') + version); console.log(colors.green.bold('Built internally @ devagnos.com')); callback(null); } } module.exports = VersionCommand;