Skip to main content

Module output

Module output 

Source
Expand description

The output boundary every handler emits through.

One rule in two halves, identical in both modes: stdout carries the result and only the result — human text by default, machine output under --json — and stderr carries everything else. No handler in commands/ prints directly; a source-scan test below holds that, so the contract cannot regrow a second personality one println! at a time.

Structs§

Output
The boundary a handler writes results through.

Enums§

Format
Which caller the result serves.

Functions§

render_error
Render one failure on stderr: the human five-question form by default, the same fields as one JSON line under --json.
take_stdout_failure
The stdout failure a successful run still has to answer for, if any.