MCPcopy
hub / github.com/codeaashu/claude-code / cliOk

Function cliOk

src/cli/exit.ts:27–31  ·  view source on GitHub ↗
(msg?: string)

Source from the content-addressed store, hash-verified

25
26/** Write a message to stdout (if given) and exit with code 0. */
27export function cliOk(msg?: string): never {
28 if (msg) process.stdout.write(msg + '\n')
29 process.exit(0)
30 return undefined as never
31}
32
33

Callers 12

registerMcpAddCommandFunction · 0.85
registerMcpXaaIdpCommandFunction · 0.85
mcpRemoveHandlerFunction · 0.85
mcpAddJsonHandlerFunction · 0.85
mcpAddFromDesktopHandlerFunction · 0.85
mcpResetChoicesHandlerFunction · 0.85
pluginValidateHandlerFunction · 0.85
pluginListHandlerFunction · 0.85
marketplaceAddHandlerFunction · 0.85
marketplaceListHandlerFunction · 0.85
marketplaceRemoveHandlerFunction · 0.85
marketplaceUpdateHandlerFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected