MCPcopy Index your code
hub / github.com/callstack/agent-device / proxyCommand

Function proxyCommand

src/cli/commands/proxy.ts:22–30  ·  view source on GitHub ↗
({ positionals, flags })

Source from the content-addressed store, hash-verified

20};
21
22export 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
32async function startProxy(flags: CliFlags): Promise<ProxyStartup> {
33 const settings = resolveClientSettings({

Callers

nothing calls this directly

Calls 4

writeCommandOutputFunction · 0.90
startProxyFunction · 0.85
renderProxyStartupFunction · 0.85
waitForeverFunction · 0.85

Tested by

no test coverage detected