MCPcopy Create free account
hub / github.com/anus-dev/ANUS / relaunchWithAdditionalArgs

Function relaunchWithAdditionalArgs

packages/cli/src/anus.tsx:102–113  ·  view source on GitHub ↗
(additionalArgs: string[])

Source from the content-addressed store, hash-verified

100}
101
102async function relaunchWithAdditionalArgs(additionalArgs: string[]) {
103 const nodeArgs = [...additionalArgs, ...process.argv.slice(1)];
104 const newEnv = { ...process.env, ANUS_CLI_NO_RELAUNCH: 'true' };
105
106 const child = spawn(process.execPath, nodeArgs, {
107 stdio: 'inherit',
108 env: newEnv,
109 });
110
111 await new Promise((resolve) => child.on('close', resolve));
112 process.exit(0);
113}
114import { runZedIntegration } from './zed-integration/zedIntegration.js';
115
116export function setupUnhandledRejectionHandler() {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected