use nishikaze::core::cli::Cli;
use nishikaze::core::cmd;

fn main() {
    let cli = Cli::parse_args();
    if let Err(e) = cmd::run(&cli) {
        eprintln!("error: {e:?}");
        std::process::exit(1);
    }
}

#[cfg(test)]
mod tests {
    use pretty_assertions::assert_eq;

    /**
     * Runs `main` to ensure the CLI entry path is covered in tests.
     */
    #[test]
    fn test_main() {
        assert_eq!(4, 5 - 1);
    }
}
