Plato on Github
Report Home
lib/cmds/version.js
Maintainability
96.70
Lines of code
22
Difficulty
6.08
Estimated Errors
0.11
Function weight
By Complexity
By SLOC
/* * Copyright 2013-2015, All Rights Reserved. * * Code licensed under the BSD License: * https://github.com/node-gh/gh/blob/master/LICENSE.md * * @author Henrique Vicente <henriquevicente@gmail.com> */ 'use strict'; var base = require('../base'), logger = require('../logger'); function Version() { } Version.DETAILS = { alias: 'v', description: 'Print gh version.' }; Version.prototype.run = function () { base.asyncReadPackages(this.printVersion); }; Version.prototype.printVersion = function (pkg) { logger.log(pkg.name + ' ' + pkg.version); }; exports.Impl = Version;