MCPcopy Create free account
hub / github.com/code-pushup/cli / close

Function close

packages/utils/src/lib/exit-process.ts:65–71  ·  view source on GitHub ↗
(code: number, reason: CloseReason)

Source from the content-addressed store, hash-verified

63 } = options;
64
65 const close = (code: number, reason: CloseReason) => {
66 if (closedReason) {
67 return;
68 }
69 closedReason = reason;
70 onExit?.(code, reason);
71 };
72
73 const uncaughtExceptionHandler = (err: unknown) => {
74 onError?.(err, 'uncaughtException');

Callers 4

uncaughtExceptionHandlerFunction · 0.85
handlerFunction · 0.85
exitHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected