prebuilt-down 0.2.2

A CLI tool for resolve prebuilt binary dependencies
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::{ArgAction, Parser};
use std::path::PathBuf;

use crate::types::platform::Platform;

#[derive(Parser, Debug)]
#[command(name = "prebuilt-down")]
#[command(about = "Download and install prebuilt binaries defined in a config file")]
pub struct Cli {
    #[arg(short, long, default_value = "prebuilt-down.toml")]
    pub config: PathBuf,
    #[arg(short, long)]
    pub platform: Option<Platform>,
    #[arg(short, long, action = ArgAction::Count)]
    pub verbose: u8,
    #[arg(short, long)]
    pub force: bool,
}