packium/src/cli.rs

34 lines
612 B
Rust

use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
#[command(propagate_version = true)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
}
#[derive(Subcommand, Debug)]
pub enum Commands {
/// Initialize a new modpack
Init,
/// List the mods in the modpack
List,
/// List the information of the modpack
Info,
/// Add a mod to the modpack
Add,
/// Remove a mod from the modpack
Remove,
/// Update a mod or all mods
Update,
/// Migrate to a other Minecraft version
Migrate,
}