easy-install 1.3.8

easy-install
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;
use easy_install::{run_main, Args};
use std::str::FromStr;
use anyhow::Result;

#[tokio::main]
async fn main() -> Result<()> {
    if let Ok(lv) = std::env::var("LOG_LEVEL")
        && let Ok(lv) = tracing::Level::from_str(&lv) {
            tracing_subscriber::fmt().with_max_level(lv).init();
        }
    let args = Args::parse();
    if let Err(e) = run_main(args).await {
        eprintln!("Error: {e:?}");
        std::process::exit(1);
    }
    Ok(())
}