pub fn emit_success<T: Serialize>(mode: OutputMode, command: &str, data: T)Expand description
Emit a success envelope through the appropriate renderer.
In OutputMode::Text this is a no-op. In OutputMode::Json this
writes exactly one JSON document followed by \n to stdout and
flushes. I/O errors are silently ignored at the boundary because the
process exits immediately after; callers wanting to surface I/O
errors should use a JsonRenderer directly.