balena-cli/lib/actions/settings.coffee
Juan Cruz Viotti f52dd2976f Implement settings command
This command allows the user to list all detected settings.
2015-11-15 22:08:02 -04:00

19 lines
370 B
CoffeeScript

resin = require('resin-sdk')
prettyjson = require('prettyjson')
exports.list =
signature: 'settings'
description: 'print current settings'
help: '''
Use this command to display detected settings
Examples:
$ resin settings
'''
action: (params, options, done) ->
resin.settings.getAll()
.then(prettyjson.render)
.then(console.log)
.nodeify(done)