pub fn check_output_status( output: Output, cmd_str: impl FnOnce() -> String, ) -> Result<Output, CodeError>