aiward 0.5.19

Local-first AI secret firewall for development environments.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::Parser;
use std::process::ExitCode;

fn main() -> ExitCode {
    let cli = aiward::cli::Cli::parse();
    match aiward::cli::dispatch(cli) {
        Ok(()) => ExitCode::SUCCESS,
        Err(error) => {
            if let Some(child_exit) = error.downcast_ref::<aiward::cli::ChildExit>() {
                return ExitCode::from(child_exit.exit_code());
            }
            eprintln!("{error:?}");
            ExitCode::FAILURE
        }
    }
}