UNPKG

polyv-live-cli

Version:

CLI tool for managing PolyV live streaming services.

75 lines 3.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.registerMonitorCommands = registerMonitorCommands; const monitor_handler_1 = require("../handlers/monitor.handler"); function registerMonitorCommands(program) { const monitorCommand = program .command('monitor') .description('Start live streaming monitoring dashboard') .option('-r, --refresh <seconds>', 'Refresh interval in seconds', '5') .option('-l, --layout <layout>', 'Dashboard layout (default, compact, single)', 'default') .option('-t, --theme <theme>', 'Color theme (default, dark)', 'default') .option('-c, --config <path>', 'Configuration file path') .option('-o, --output <format>', 'Output format for status commands', 'table') .option('-v, --verbose', 'Enable verbose logging', false) .option('-d, --debug', 'Enable debug mode', false) .action(async (options) => { const handler = new monitor_handler_1.MonitorHandler(); await handler.startMonitoring(options); }); monitorCommand .command('status') .description('Show monitoring dashboard status') .option('-o, --output <format>', 'Output format (table, json)', 'table') .action(async (options) => { const handler = new monitor_handler_1.MonitorHandler(); await handler.showStatus(options); }); monitorCommand .command('config') .description('Manage monitoring configuration') .option('-o, --output <format>', 'Output format (table, json)', 'table') .action(async (options) => { const handler = new monitor_handler_1.MonitorHandler(); await handler.showConfig(options); }); monitorCommand .command('layouts') .description('List available dashboard layouts') .option('-o, --output <format>', 'Output format (table, json)', 'table') .action(async (options) => { const handler = new monitor_handler_1.MonitorHandler(); await handler.listLayouts(options); }); monitorCommand .command('themes') .description('List available themes') .option('-o, --output <format>', 'Output format (table, json)', 'table') .action(async (options) => { const handler = new monitor_handler_1.MonitorHandler(); await handler.listThemes(options); }); monitorCommand .command('test') .description('Test monitoring dashboard compatibility') .option('-o, --output <format>', 'Output format (table, json)', 'table') .action(async (options) => { const handler = new monitor_handler_1.MonitorHandler(); await handler.testCompatibility(options); }); monitorCommand .command('export <filepath>') .description('Export monitoring configuration') .action(async (filepath) => { const handler = new monitor_handler_1.MonitorHandler(); await handler.exportConfig(filepath); }); monitorCommand .command('import <filepath>') .description('Import monitoring configuration') .action(async (filepath) => { const handler = new monitor_handler_1.MonitorHandler(); await handler.importConfig(filepath); }); } //# sourceMappingURL=monitor.commands.js.map