balena-cli/lib/actions/settings.coffee

19 lines
370 B
CoffeeScript
Raw Normal View History

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)