pub fn run_and_format<T: AsRef<str>>(
command: impl BorrowMut<Command>,
filters: impl AsRef<[(T, T)]>,
function_name: &str,
windows_filters: Option<WindowsFilters>,
input: Option<&str>,
) -> (String, Output)Expand description
Execute the command and format its output status, stdout and stderr into a snapshot string.
This function is derived from insta_cmds spawn_with_info.