pub fn exec<T: AsRef<OsStr>>(
program: &str,
args: impl IntoIterator<Item = T>,
in_repo: bool,
) -> Result<()>
Expand description
Short-cut wrapper to create a new command, feed in the args, set the working directory, and then run it, checking the resulting exit code.