Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AgentMode bool
AgentMode switches all output to structured JSON (set via --agent-safe or CLAUDE_CODE=1). When true: human-readable text and ANSI colors are suppressed; every status message is emitted as {"ok":true,"data":"..."} on Out or {"ok":false,"error":"..."} on Err.
Functions ¶
func JSONError ¶
func JSONError(msg string)
JSONError writes a structured error to Err as {"ok":false,"error":"..."}.
func JSONResult ¶
func JSONResult(payload interface{})
JSONResult writes structured data to Out as {"ok":true,"data":<payload>}. Use this in commands that need to emit machine-readable output in agent mode.
func NotImplemented ¶
func NotImplemented(name string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.