Expand description
The output boundary: every byte the binary prints goes through here.
stdout carries the result — findings, summaries, rendered documents —
as plain text, which is what pre-commit shows a consumer, or as one JSON
object when a subcommand’s --json flag selects it. stderr carries
exactly one JSON error envelope for operational failures. No other
module (main.rs aside) prints.
Functions§
- error_
envelope - Emit the one structured error envelope to stderr.
- findings
- Print every finding, one line each, to stdout.
- json
- Print one result as a single pretty-printed JSON object to stdout.
- line
- Print one result line to stdout.
- raw
- Write pre-rendered bytes — completions, man pages — to stdout.