mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-29 18:18:50 +00:00
f52dd2976f
This command allows the user to list all detected settings.
19 lines
370 B
CoffeeScript
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)
|