//! Shared stdout helpers for headless CLI subcommands (`query`, `doctor`).
use Serialize;
/// Pretty-print `value` as JSON to stdout.
///
/// # Errors
///
/// Returns `Err` when serialization fails.
Sized>
/// Print one string per line, then a count footer on stderr (human mode).