Implement version module

This commit is contained in:
Juan Cruz Viotti 2014-11-20 12:13:59 -04:00
parent ee0fc8206f
commit e1a63fb548
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,4 @@
packageJSON = require('../../package.json')
exports.version = ->
console.log(packageJSON.version)

View File

@ -1,4 +1,3 @@
packageJSON = require('../package.json')
data = require('./data/data')
config = require('./config')
@ -28,6 +27,10 @@ yargs.command('devices <id>', device.list)
preferences = require('./actions/preferences')
yargs.command('preferences', preferences.preferences)
# ---------- Version Module ----------
version = require('./actions/version')
yargs.command('version', version.version)
data.prefix.set config.dataPrefix, (error) ->
throw error if error?
yargs.command.run()