Expand description
Output format selection for history list, history show, tune, and simulate.
These commands support --output json; other commands keep their existing
human-readable output.
Mirrors opcda-bridge-client’s output.rs in spirit (a small OutputFormat enum plus a
format_error helper), but deliberately without its generic render<T: Tabled + Serialize> function: the bhtune CLI’s commands print bespoke, multi-section reports (history show’s run detail, tune’s calculated-PID listing), not flat single-row-type tables, so
there is no one shared row shape to hand to a generic renderer. Each command instead
builds its own JSON-serializable summary type and calls serde_json::to_string_pretty
directly — see commands::history/commands::tune.
Enums§
- Output
Format - How a command’s result is printed. Only commands documented in this module’s doc comment honor this; every other command always prints its existing human-readable text.
Functions§
- format_
error - Format an error for display, matching the requested output format.