pub fn safe_cmd<'a>(
        args: impl IntoIterator<Item = &'a str>,
        expect_exit_code: Option<i32>,
    ) -> Result<process::Output> {
        safe_cmd_at(args, env::current_dir()?, expect_exit_code)
    }
/// Runs safe with the arguments specified, with the option to assert on the exit code.
///
/// This was changed to use the assert_cmd crate because the newer version of this crate
/// provides *both* the stdout and stderr if the process doesn't exit as expected. This is
/// extremely useful in this test suite because there are lots of commands used to setup the
/// context for the tests, and you need to be able to see why those fail too.
Runs safe with the arguments specified, with the option to assert on the exit code.
This was changed to use the assert_cmd crate because the newer version of this crate
provides *both* the stdout and stderr if the process doesn't exit as expected. This is
extremely useful in this test suite because there are lots of commands used to setup the
context for the tests, and you need to be able to see why those fail too.
Runs safe with the arguments specified with the option to assert on the exit code . This was changed to use the assert_cmd crate because the newer version of this crate provides * both * the stdout and stderr if the process doesn ' t exit as expected . This is extremely useful in this test suite because there are lots of commands used to setup the context for the tests and you need to be able to see why those fail too .
pub fn safe_cmd<'a>(
        args: impl IntoIterator<Item = &'a str>,
        expect_exit_code: Option<i32>,
    ) -> Result<process::Output> {
        safe_cmd_at(args, env::current_dir()?, expect_exit_code)
    }
pub fn safe_cmd < ' a > ( args : impl IntoIterator < Item = & ' a str > , expect_exit_code : Option < i32 > , ) -> Result < process :: Output > { safe_cmd_at ( args , env :: current_dir ( ) ? , expect_exit_code ) }
Runs safe with the arguments specified, with the option to assert on the exit code.
Runs safe with the arguments specified with the option to assert on the exit code .
args
impl IntoIterator<Item = &'a str>
expect_exit_code
Option<i32>
args
impl IntoIterator<Item = &'a str>
expect_exit_code
Option<i32>