MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / interruptHandler

Function interruptHandler

packages/baseai/src/init/index.ts:320–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318}: { calledAsCommand?: boolean; debug?: boolean } = {}): Promise<void> {
319 // Add interrupt handler
320 const interruptHandler = () => {
321 console.log('\nInterrupted. Cleaning up...');
322 // Add any necessary cleanup here
323 process.exit(0);
324 };
325
326 process.on('SIGINT', interruptHandler);
327

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected