@su-thomas/homebridge-webos-tv
Version:
Homebridge plugin for LG webOS TVs
35 lines (30 loc) • 1.1 kB
JavaScript
//import path from 'path';
//import { fileURLToPath } from 'url';
import yargs from 'yargs';
import {
hideBin
} from 'yargs/helpers';
//const __filename = fileURLToPath(import.meta.url);
//const __dirname = path.dirname(__filename);
/*
yargs(hideBin(process.argv)).commandDir(path.join(__dirname, 'commands'))
.recommendCommands()
.demandCommand()
.argv;
*/
import * as pair from './commands/pair.js';
import * as request from './commands/request.js';
import * as power from './commands/power.js';
import * as volume from './commands/volume.js';
import * as toast from './commands/toast.js';
import * as app from './commands/app.js';
import * as settings from './commands/settings.js';
import * as lunaSend from './commands/lunaSend.js';
import * as serviceMenu from './commands/serviceMenu.js';
import * as ezAdjust from './commands/ezAdjust.js';
//import * as tv from './commands/tv.js';
yargs(hideBin(process.argv))
.command([pair, request, power, volume, toast, app, settings, lunaSend, serviceMenu, ezAdjust])
.recommendCommands()
.demandCommand().argv;