MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / shutdown

Function shutdown

apps/cli/src/commands/cli/list.ts:240–243  ·  view source on GitHub ↗
(exitCode: number)

Source from the content-addressed store, hash-verified

238 const host = await createListHost(options, hostOptions)
239
240 const shutdown = async (exitCode: number) => {
241 await host.dispose()
242 process.exit(exitCode)
243 }
244
245 const onSigint = () => void shutdown(130)
246 const onSigterm = () => void shutdown(143)

Callers 2

onSigintFunction · 0.70
onSigtermFunction · 0.70

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected