renamed add command to include
This commit is contained in:
@@ -15,7 +15,7 @@ pub struct Args {
|
||||
#[derive(Subcommand, Debug)]
|
||||
pub enum Commands {
|
||||
Activate { instance: String, target: PathBuf },
|
||||
Add { instance: String, mod_id: String },
|
||||
Include { instance: String, mod_id: String },
|
||||
LoadOrder { instance: String },
|
||||
ApiCheck,
|
||||
Download { url: String },
|
||||
|
||||
@@ -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<()> {
|
||||
handle_nxm(root_config, raw_url)
|
||||
handle_nxm(root_config, raw_url)?;
|
||||
|
||||
root_config.save_to_file()?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn command_unpack(
|
||||
@@ -107,7 +111,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
cli::Commands::Activate { 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)?;
|
||||
}
|
||||
cli::Commands::LoadOrder { instance } => {
|
||||
|
||||
Reference in New Issue
Block a user