Skip to main content

stub_command

Function stub_command 

Source
pub fn stub_command(output: &str, exit_code: i32) -> String
Expand description

The shell command a stub compiles to — a safely single-quoted printf of the declared output, exactly mirroring oneharness’s stub_input so the fake provider’s post-rewrite events look like the real thing.