cli: add Pakku-parity command flags
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ib1afd8838dfbd1b70a35d313ed3505f26a6a6964
This commit is contained in:
parent
0eff42568e
commit
a50657bad5
1 changed files with 18 additions and 0 deletions
18
src/cli.rs
18
src/cli.rs
|
|
@ -118,6 +118,10 @@ pub struct ImportArgs {
|
||||||
/// Path to modpack file
|
/// Path to modpack file
|
||||||
pub file: String,
|
pub file: String,
|
||||||
|
|
||||||
|
/// Resolve dependencies
|
||||||
|
#[clap(short = 'D', long = "deps")]
|
||||||
|
pub deps: bool,
|
||||||
|
|
||||||
/// Skip confirmation prompts
|
/// Skip confirmation prompts
|
||||||
#[clap(short, long)]
|
#[clap(short, long)]
|
||||||
pub yes: bool,
|
pub yes: bool,
|
||||||
|
|
@ -203,6 +207,10 @@ pub struct RmArgs {
|
||||||
#[clap(required = true)]
|
#[clap(required = true)]
|
||||||
pub inputs: Vec<String>,
|
pub inputs: Vec<String>,
|
||||||
|
|
||||||
|
/// Remove all projects
|
||||||
|
#[clap(short = 'a', long)]
|
||||||
|
pub all: bool,
|
||||||
|
|
||||||
/// Skip confirmation prompt
|
/// Skip confirmation prompt
|
||||||
#[clap(short, long)]
|
#[clap(short, long)]
|
||||||
pub yes: bool,
|
pub yes: bool,
|
||||||
|
|
@ -356,6 +364,16 @@ pub struct ExportArgs {
|
||||||
/// Default is Pakker layout (exports/...)
|
/// Default is Pakker layout (exports/...)
|
||||||
#[clap(long)]
|
#[clap(long)]
|
||||||
pub pakker_layout: bool,
|
pub pakker_layout: bool,
|
||||||
|
|
||||||
|
/// Show file IO errors during export
|
||||||
|
#[clap(long = "show-io-errors")]
|
||||||
|
pub show_io_errors: bool,
|
||||||
|
|
||||||
|
/// Export modpack without server content
|
||||||
|
/// Modrinth: exclude server-overrides and SERVER mods
|
||||||
|
/// ServerPack: skip export
|
||||||
|
#[clap(long = "no-server")]
|
||||||
|
pub no_server: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Args)]
|
#[derive(Args)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue