2015-06-10 12:34:42 -04:00
|
|
|
settings = require('resin-settings-client')
|
2015-01-15 11:16:07 -03:00
|
|
|
packageJSON = require('../../package.json')
|
|
|
|
|
2015-01-15 14:10:14 -03:00
|
|
|
exports.version =
|
|
|
|
signature: 'version'
|
|
|
|
description: 'output the version number'
|
2015-03-03 10:14:16 -04:00
|
|
|
help: '''
|
2015-04-06 17:18:00 -04:00
|
|
|
Display the Resin CLI version.
|
2015-03-03 10:14:16 -04:00
|
|
|
'''
|
2015-04-30 11:56:15 -04:00
|
|
|
action: (params, options, done) ->
|
2015-04-06 17:18:00 -04:00
|
|
|
console.log(packageJSON.version)
|
2015-04-30 11:56:15 -04:00
|
|
|
return done()
|
2015-06-10 12:34:42 -04:00
|
|
|
|
|
|
|
exports.config =
|
|
|
|
signature: 'config'
|
|
|
|
description: 'see your current configuration'
|
|
|
|
help: '''
|
|
|
|
See your current Resin CLI configuration.
|
|
|
|
|
|
|
|
Configuration lives in $HOME/.resin/config.
|
|
|
|
'''
|
|
|
|
action: (params, options, done) ->
|
|
|
|
for key, value of settings.get()
|
|
|
|
console.log("#{key}: #{value}")
|
|
|
|
return done()
|