MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / cli_ok

Function cli_ok

src/cli_core/exit.py:22–28  ·  view source on GitHub ↗

Write ``msg`` to stdout (if provided) and exit with code 0.

(msg: str | None = None)

Source from the content-addressed store, hash-verified

20
21
22def cli_ok(msg: str | None = None) -> NoReturn:
23 """Write ``msg`` to stdout (if provided) and exit with code 0."""
24
25 if msg:
26 sys.stdout.write(msg + "\n")
27 sys.stdout.flush()
28 sys.exit(0)

Calls 3

writeMethod · 0.45
flushMethod · 0.45
exitMethod · 0.45

Tested by 1