diff --git a/lib/actions/version.coffee b/lib/actions/version.coffee deleted file mode 100644 index 10ed4217..00000000 --- a/lib/actions/version.coffee +++ /dev/null @@ -1,4 +0,0 @@ -packageJSON = require('../../package.json') - -exports.version = -> - console.log(packageJSON.version) diff --git a/lib/app.coffee b/lib/app.coffee index b9ac3b71..b5dda00d 100644 --- a/lib/app.coffee +++ b/lib/app.coffee @@ -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')