32 lines
638 B
Rust
32 lines
638 B
Rust
mod cli;
|
|
mod commands;
|
|
mod config;
|
|
mod modrinth;
|
|
mod pack;
|
|
|
|
use clap::Parser;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
let args = cli::Cli::parse();
|
|
|
|
match &args.command {
|
|
cli::Commands::Init => {
|
|
commands::init::init(false).await;
|
|
}
|
|
cli::Commands::Add => {
|
|
commands::add::add().await;
|
|
}
|
|
cli::Commands::Remove => {
|
|
commands::remove::remove().await;
|
|
}
|
|
cli::Commands::List => {
|
|
commands::list::list().await;
|
|
}
|
|
cli::Commands::Update => {
|
|
commands::update::update().await;
|
|
}
|
|
_ => (),
|
|
};
|
|
}
|