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

Function cliError

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

Source from the content-addressed store, hash-verified

17
18/** Write an error message to stderr (if given) and exit with code 1. */
19export function cliError(msg?: string): never {
20 // biome-ignore lint/suspicious/noConsole: centralized CLI error output
21 if (msg) console.error(msg)
22 process.exit(1)
23 return undefined as never
24}
25
26/** Write a message to stdout (if given) and exit with code 0. */
27export function cliOk(msg?: string): never {

Callers 14

registerMcpAddCommandFunction · 0.85
registerMcpXaaIdpCommandFunction · 0.85
mcpServeHandlerFunction · 0.85
mcpRemoveHandlerFunction · 0.85
mcpGetHandlerFunction · 0.85
mcpAddJsonHandlerFunction · 0.85
mcpAddFromDesktopHandlerFunction · 0.85
handleMarketplaceErrorFunction · 0.85
marketplaceAddHandlerFunction · 0.85
pluginInstallHandlerFunction · 0.85
pluginUninstallHandlerFunction · 0.85
pluginEnableHandlerFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected