Skip to main content

renderer_for

Function renderer_for 

Source
pub fn renderer_for(
    format: &str,
    color: bool,
    logs: bool,
) -> Result<Box<dyn OutputRenderer>>
Expand description

Build the renderer for a run.

format is the --format value ("human" or "json"); color controls ANSI output; logs forces the streaming HumanRenderer over the ProgressRenderer view (set by --logs or a CI environment). Mirrors the prior inline selection in hm’s commands/run/local.rs.

§Errors

Returns an error when format is neither "human" nor "json".