easy_install/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub mod artifact;
pub mod download;
pub mod env;
pub mod git_credentials;
pub mod install;
pub mod gh_token;

#[derive(Parser, Debug, Clone)]
#[command(version, about, long_about = None)]
pub struct Args {
    #[arg()]
    pub name_or_url: String,
}

use clap::Parser;

pub async fn run_main(args: Args) {
    let Args { name_or_url } = args;
    install::install(&name_or_url).await;
}