mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-19 03:06:29 +00:00
Use packageJSON directly instead of creating version action
This commit is contained in:
parent
b53bc060a3
commit
1c1e8b375e
@ -1,4 +0,0 @@
|
||||
packageJSON = require('../../package.json')
|
||||
|
||||
exports.version = ->
|
||||
console.log(packageJSON.version)
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user