balena-cli
Version:
The official balena Command Line Interface
20 lines (19 loc) • 736 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const lazy_1 = require("../../utils/lazy");
class SettingsCmd extends core_1.Command {
async run() {
await this.parse(SettingsCmd);
const settings = await (0, lazy_1.getBalenaSdk)().settings.getAll();
const prettyjson = await Promise.resolve().then(() => require('prettyjson'));
console.log(prettyjson.render(settings));
}
}
SettingsCmd.description = (0, lazy_1.stripIndent) `
Print current settings.
Use this command to display the current balena CLI settings.
`;
SettingsCmd.examples = ['$ balena settings'];
exports.default = SettingsCmd;
//# sourceMappingURL=index.js.map
;