MCPcopy Create free account
hub / github.com/Noumena-Network/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}

Callers 15

registerMcpAddCommandFunction · 0.85
registerMcpXaaIdpCommandFunction · 0.85
setupTokenHandlerFunction · 0.85
doctorHandlerFunction · 0.85
installHandlerFunction · 0.85
authLoginFunction · 0.85
authStatusFunction · 0.85
authLogoutFunction · 0.85
mcpRemoveHandlerFunction · 0.85
mcpAddJsonHandlerFunction · 0.85
mcpAddFromDesktopHandlerFunction · 0.85
mcpResetChoicesHandlerFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected