ghidra-cli/docs/adr/0003-default-to-json-everywhere.md

577 B

status
accepted

Default to JSON everywhere

Automation agents are the primary consumers, so the shortest invocation must produce the stable machine interface. The CLI defaults to JSON regardless of whether stdout is a terminal or pipe; human-readable presentation requires --format human. Avoiding TTY-dependent format selection ensures that the same command has the same framing and semantics in every execution environment. JSON mode never emits interactive prompts; required confirmation is represented as a structured error and satisfied by an explicit flag.