UNPKG

hueadm

Version:

A command line management interface to phillips hue

31 lines (24 loc) 601 B
var common = require('../common'); module.exports = searchLights; function searchLights(subcmd, opts, args, cb) { var self = this; var finish = common.makeFinisher(opts, cb); if (opts.help) { self.do_help('help', {}, [subcmd], cb); return; } self.client.searchForLights(finish); } searchLights.options = [ { names: ['help', 'h'], type: 'bool', help: 'Show this help.' }, { names: ['json', 'j'], type: 'bool', help: 'JSON output.' } ]; searchLights.help = 'Search for new lights\n\n{{options}}';