From 9063a041f6b2e72f6e4a861c77ac16065dd5378b Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Tue, 9 May 2023 20:34:09 +0200 Subject: add list toggles to update and download; add mod remove output and fix errors --- src/commands/update.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/commands/update.rs') diff --git a/src/commands/update.rs b/src/commands/update.rs index 4bc3ac0..d76ba4b 100644 --- a/src/commands/update.rs +++ b/src/commands/update.rs @@ -18,19 +18,19 @@ pub async fn update( delete_old: bool, ) -> MLE<()> { for current_list in liststack { + println!("Update mods in {}", current_list.id); let mods = userlist_get_all_ids(config.clone(), current_list.clone().id)?; let mut current_versions: Vec<(String, String)> = vec![]; - println!(" └Update mods:"); let mut updatestack: Vec = vec![]; for id in mods { let info = mods_get_info(config.clone(), &id)?; - println!("\t└{}", info.title); + println!(" └{}", info.title); if userlist_get_set_version(config.clone(), ¤t_list.id, &id)? { - println!("\t └Set version, skipping update"); + println!(" └Set version, skipping update"); continue; } @@ -54,7 +54,7 @@ pub async fn update( Err(e) => { if e.to_string() == "Mod: NO_UPDATE_AVAILABLE" { println!( - "\t └No new version found for the specified minecraft version" + " └No new version found for the specified minecraft version" ); } else { return Err(e); @@ -76,10 +76,10 @@ pub async fn update( if !clean { for ver in current_versions { if delete_old { - println!("\t └Delete version {}", ver.0); + println!(" └Delete version {}", ver.0); delete_version(current_list.clone(), ver.0)?; } else if ver.0 != "NONE" { - println!("\t └Disable version {}", ver.0); + println!(" └Disable version {}", ver.0); disable_version(config.clone(), current_list.clone(), ver.0, ver.1)?; }; } -- cgit v1.2.3