execute_cli_run

Function execute_cli_run 

Source
pub fn execute_cli_run<FRead>(
    args: RunArgs,
    read_data: FRead,
) -> Result<Option<Vec<u8>>>
where FRead: Fn(&Path) -> Result<Vec<u8>>,
Expand description

Executes the ctoolbox run CLI subcommand.

Returns Ok(Some(bytes)) when output should be written to stdout, or Ok(None) when output was written directly to -o/--output.

ยงErrors

Returns an error if reading inputs, parsing the document, executing via Dc 1936, rendering, or writing output fails.