Skip to main content

run_with_records_to

Function run_with_records_to 

Source
pub async fn run_with_records_to(
    args: FormatArgs,
    extra: Vec<MetadataRecord>,
    progress: &mut (dyn Write + Send),
) -> i32
Expand description

run_with_records, with Kafka’s progress lines written to progress instead of stdout.

A tool that formats as one step of its own command, such as krabka-restore, keeps its stdout for its own output: a --report json that a script pipes to jq must hold the report and nothing else.

§Panics

As run_with_records.