pub fn apply_output_captures(
provider: &Provider,
raw_args: &[String],
) -> Result<(Vec<String>, Vec<CapturedOutput>), CliError>Expand description
Apply a provider’s output-capture rules to a flat arg list, producing a rewritten arg list (with temp paths in place of caller paths) plus a list of captures the proxy must read back after the subprocess exits.
Rules applied in order:
- Named flags from
cli_output_args: any matching--flag valuepair has its value rewritten to a temp path. Both--flag valueand--flag=valueforms are supported. - Positional captures from
cli_output_positional: longest matching subcommand prefix (after strippingcli_default_args) wins; the configured positional index within the remaining args is rewritten.