Skip to main content

run

Function run 

Source
pub fn run<I, T>(args: I) -> i32
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

Run one command line (argument zero is the program name) and return the exit code.

A hook or receipts confirm command line always returns 0: whatever the host passed, a hook that fails would fail the agent turn it is attached to (confirm runs from the host app’s Stop hook), so its parse errors become one line on stderr.