nest-cli
Version:
Unofficial command-line tool to control Nest devices
23 lines (18 loc) • 406 B
JavaScript
;
const DevicesTask = require('../tasks/devices');
module.exports = {
name: 'devices',
description: 'get a list of known devices',
alias: 'ls',
priority: 97,
options: ['-v, --verbose', 'output the raw response'],
run(options) {
const task = new DevicesTask({
app: this.app,
ui: this.ui
});
return task.run({
verbose: options.verbose
});
}
};