mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-22 23:12:22 +00:00
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);
|