mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 15:32:22 +00:00
Implement version module
This commit is contained in:
parent
ee0fc8206f
commit
e1a63fb548
lib
4
lib/actions/version.coffee
Normal file
4
lib/actions/version.coffee
Normal file
@ -0,0 +1,4 @@
|
||||
packageJSON = require('../../package.json')
|
||||
|
||||
exports.version = ->
|
||||
console.log(packageJSON.version)
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user