({ positionals, flags })
| 20 | }; |
| 21 | |
| 22 | export const proxyCommand: ClientCommandHandler = async ({ positionals, flags }) => { |
| 23 | if (positionals.length > 0) { |
| 24 | throw new AppError('INVALID_ARGS', 'proxy does not accept positional arguments.'); |
| 25 | } |
| 26 | const startup = await startProxy(flags); |
| 27 | writeCommandOutput(flags, startup, () => renderProxyStartup(startup)); |
| 28 | await waitForever(); |
| 29 | return true; |
| 30 | }; |
| 31 | |
| 32 | async function startProxy(flags: CliFlags): Promise<ProxyStartup> { |
| 33 | const settings = resolveClientSettings({ |
nothing calls this directly
no test coverage detected