UNPKG

@cliz/gpm

Version:
23 lines (22 loc) 789 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cli_1 = require("@cliz/cli"); const core_1 = require("@cliz/web-terminal/lib/core"); exports.default = (0, cli_1.defineSubCommand)((createCommand) => { return createCommand('Share terminal') .option('-c, --code <code>', 'Use custom code', { default: process.env.CODE, }) .option('-r, --relay <relay>', 'Use custom relay', { default: process.env.REPLAY || 'wss://web-terminal.zcorky.com/terminal', }) .option('--verbose', 'Show Command Log') .action(({ args, options }) => { const _options = { ...args, ...options, useLink: true, }; return (0, core_1.startServer)(_options); }); });