mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-22 15:02:22 +00:00
f52dd2976f
This command allows the user to list all detected settings.
18 lines
461 B
JavaScript
18 lines
461 B
JavaScript
(function() {
|
|
var prettyjson, resin;
|
|
|
|
resin = require('resin-sdk');
|
|
|
|
prettyjson = require('prettyjson');
|
|
|
|
exports.list = {
|
|
signature: 'settings',
|
|
description: 'print current settings',
|
|
help: 'Use this command to display detected settings\n\nExamples:\n\n $ resin settings',
|
|
action: function(params, options, done) {
|
|
return resin.settings.getAll().then(prettyjson.render).then(console.log).nodeify(done);
|
|
}
|
|
};
|
|
|
|
}).call(this);
|