balena-cli/build/actions/settings.js
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

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);