MCPcopy Create free account
hub / github.com/IAmUnbounded/devctx / cleanup

Function cleanup

devctx/src/commands/watch.ts:107–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106 // Graceful shutdown
107 const cleanup = () => {
108 clearInterval(timer);
109 watcher.close();
110 console.log(chalk.gray("\n Watch mode stopped."));
111 process.exit(0);
112 };
113
114 process.on("SIGINT", cleanup);
115 process.on("SIGTERM", cleanup);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected