Use packageJSON directly instead of creating version action

This commit is contained in:
Juan Cruz Viotti 2014-11-21 09:30:29 -04:00
parent b53bc060a3
commit 1c1e8b375e
2 changed files with 3 additions and 8 deletions

View File

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

View File

@ -57,13 +57,12 @@ program
.description('Open preferences form')
.action(preferences.preferences)
# ---------- Version Module ----------
version = require('./actions/version')
# ---------- Info Module ----------
program
.command('version')
.description('Show version')
.action(version.version)
.action ->
console.log(packageJSON.version)
# ---------- Keys Module ----------
keys = require('./actions/keys')