Skip to main content

Module output

Module output 

Source
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. 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.
line
Print one result line to stdout.
raw
Write pre-rendered bytes — completions, man pages — to stdout.