pub fn safe_cmd_stdout<'a>(
        args: impl IntoIterator<Item = &'a str>,
        expect_exit_code: Option<i32>,
    ) -> Result<String> {
        let output = safe_cmd(args, expect_exit_code)?;
        let stdout = String::from_utf8(output.stdout)
            .wrap_err("Failed to parse the error output as a UTF-8 string".to_string())?;
        Ok(stdout.trim().to_string())
    }
// Executes arbitrary `safe ` commands and returns
// stdout output
//
// If expect_exit_code is Some, then an Err is returned
// if value does not match process exit code.
Executes arbitrary `safe ` commands and returns
stdout output

If expect_exit_code is Some, then an Err is returned
if value does not match process exit code.
Executes arbitrary ` safe ` commands and returns stdout output If expect_exit_code is Some then an Err is returned if value does not match process exit code .
pub fn safe_cmd_stdout<'a>(
        args: impl IntoIterator<Item = &'a str>,
        expect_exit_code: Option<i32>,
    ) -> Result<String> {
        let output = safe_cmd(args, expect_exit_code)?;
        let stdout = String::from_utf8(output.stdout)
            .wrap_err("Failed to parse the error output as a UTF-8 string".to_string())?;
        Ok(stdout.trim().to_string())
    }
pub fn safe_cmd_stdout < ' a > ( args : impl IntoIterator < Item = & ' a str > , expect_exit_code : Option < i32 > , ) -> Result < String > { let output = safe_cmd ( args , expect_exit_code ) ? ; let stdout = String :: from_utf8 ( output . stdout ) . wrap_err ( " " . to_string ( ) ) ? ; Ok ( stdout . trim ( ) . to_string ( ) ) }
Executes arbitrary `safe ` commands and returns
stdout output
Executes arbitrary ` safe ` commands and returns stdout output
args
impl IntoIterator<Item = &'a str>
expect_exit_code
Option<i32>
args
impl IntoIterator<Item = &'a str>
expect_exit_code
Option<i32>