knott 0.1.16

Fast Rust package manager helper for Arch Linux repos and the AUR
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::process::ExitCode;

#[tokio::main(flavor = "multi_thread")]
async fn main() -> ExitCode {
    let args = std::env::args().skip(1).collect::<Vec<_>>();

    match knott::run(args).await {
        Ok(code) => ExitCode::from(code as u8),
        Err(err) => {
            eprintln!(
                "knott: {}",
                knott::sanitize_for_terminal(&format!("{err:#}"))
            );
            ExitCode::from(1)
        }
    }
}