mod captcha;
mod cli;
mod ddg;
mod output;
mod prompt;

use std::process::ExitCode;

fn main() -> ExitCode {
    match cli::run() {
        Ok(()) => ExitCode::SUCCESS,
        Err(e) => {
            eprintln!("ddg: {e:#}");
            ExitCode::FAILURE
        }
    }
}
