fn verify_prereqs() -> Result<()> {
    use std::process::Command;

    let docker_compose_output = Command::new("docker-compose")
        .args(&["--help"])
        .output()
        .context("Failed to run 'docker-compose --help'.")?;
    if !docker_compose_output.status.success() {
        return Err(eyre!(crate::errors::AppError::ChildProcessFailure(
            docker_compose_output.status,
            "Missing pre-req: docker-compose.".to_owned(),
            String::from_utf8_lossy(&docker_compose_output.stdout).into(),
            String::from_utf8_lossy(&docker_compose_output.stderr).into()
        )));
    }

    Ok(())
}
/// Verifies that the required tools are present on this system.
Verifies that the required tools are present on this system.
Verifies that the required tools are present on this system .
fn verify_prereqs() -> Result<()> {
    use std::process::Command;
    let docker_compose_output = Command::new("docker-compose")
        .args(&["--help"])
        .output()
        .context("Failed to run 'docker-compose --help'.")?;
    if !docker_compose_output.status.success() {
        return Err(eyre!(crate::errors::AppError::ChildProcessFailure(
            docker_compose_output.status,
            "Missing pre-req: docker-compose.".to_owned(),
            String::from_utf8_lossy(&docker_compose_output.stdout).into(),
            String::from_utf8_lossy(&docker_compose_output.stderr).into()
        )));
    }
    Ok(())
}
fn verify_prereqs ( ) -> Result < ( ) > { use std :: process :: Command ; let docker_compose_output = Command :: new ( " " ) . args ( & [ " " ] ) . output ( ) . context ( " " ) ? ; if ! docker_compose_output . status . success ( ) { return Err ( eyre ! ( crate errors AppError ChildProcessFailure ( docker_compose_output status " " to_owned ( ) String from_utf8_lossy ( docker_compose_output stdout ) into ( ) String from_utf8_lossy ( docker_compose_output stderr ) into ( ) ) ) ) ; } Ok ( ( ) ) }
Verifies that the required tools are present on this system.
Verifies that the required tools are present on this system .