MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / exitCli

Function exitCli

cli/src/hooks/use-exit-handler.ts:42–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42function exitCli(): void {
43 if (IS_FREEBUFF) {
44 void exitFreebuffCleanly()
45 return
46 }
47
48 withTimeout(flushAnalytics(), EXIT_FLUSH_TIMEOUT_MS, undefined).finally(
49 () => {
50 process.exit(0)
51 },
52 )
53}
54
55export const useExitHandler = ({
56 inputValue,

Callers 2

useExitHandlerFunction · 0.85
handleSigintFunction · 0.85

Calls 3

exitFreebuffCleanlyFunction · 0.90
withTimeoutFunction · 0.90
flushAnalyticsFunction · 0.90

Tested by

no test coverage detected