renamed add command to include

This commit is contained in:
2026-03-18 21:36:55 +01:00
parent 3949723303
commit ed9e23ed3b
2 changed files with 7 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ pub struct Args {
#[derive(Subcommand, Debug)] #[derive(Subcommand, Debug)]
pub enum Commands { pub enum Commands {
Activate { instance: String, target: PathBuf }, Activate { instance: String, target: PathBuf },
Add { instance: String, mod_id: String }, Include { instance: String, mod_id: String },
LoadOrder { instance: String }, LoadOrder { instance: String },
ApiCheck, ApiCheck,
Download { url: String }, Download { url: String },

View File

@@ -63,7 +63,11 @@ fn command_order(root_config: &RootConfig, instance_id: &str) -> anyhow::Result<
} }
fn command_download(root_config: &mut RootConfig, raw_url: &str) -> anyhow::Result<()> { fn command_download(root_config: &mut RootConfig, raw_url: &str) -> anyhow::Result<()> {
handle_nxm(root_config, raw_url) handle_nxm(root_config, raw_url)?;
root_config.save_to_file()?;
Ok(())
} }
fn command_unpack( fn command_unpack(
@@ -107,7 +111,7 @@ fn main() -> Result<(), Box<dyn Error>> {
cli::Commands::Activate { instance, target } => { cli::Commands::Activate { instance, target } => {
command_activate(&root_config, &instance, &target)?; command_activate(&root_config, &instance, &target)?;
} }
cli::Commands::Add { instance, mod_id } => { cli::Commands::Include { instance, mod_id } => {
command_add(&root_config, &instance, &mod_id)?; command_add(&root_config, &instance, &mod_id)?;
} }
cli::Commands::LoadOrder { instance } => { cli::Commands::LoadOrder { instance } => {