@clux-cli/cli 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ import { TmuxSessionManager } from '@clux-cli/core';
3
+ export declare function registerWebCommand(program: Command, _manager: TmuxSessionManager): void;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerWebCommand = registerWebCommand;
4
+ function registerWebCommand(program, _manager) {
5
+ program
6
+ .command('web')
7
+ .description('Start the Clux web dashboard')
8
+ .option('-p, --port <port>', 'Port to listen on', '3456')
9
+ .option('-H, --host <host>', 'Host to bind to', '127.0.0.1')
10
+ .action((opts) => {
11
+ process.env.PORT = opts.port;
12
+ process.env.HOST = opts.host;
13
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
14
+ require('@clux-cli/web/dist/server');
15
+ });
16
+ }
17
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/commands/web.ts"],"names":[],"mappings":";;AAGA,gDAYC;AAZD,SAAgB,kBAAkB,CAAC,OAAgB,EAAE,QAA4B;IAC/E,OAAO;SACJ,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,8BAA8B,CAAC;SAC3C,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,CAAC;SACxD,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,WAAW,CAAC;SAC3D,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QACf,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAC7B,iEAAiE;QACjE,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC"}