From 78864c732a9270336c55e4694b568a832a3092af Mon Sep 17 00:00:00 2001 From: Ilesh Thiada Date: Sun, 28 Jan 2024 20:11:30 +0530 Subject: [PATCH] Small tweaks and switch to crates libium --- Cargo.lock | 4 +++- Cargo.toml | 3 +-- src/cli.rs | 5 +---- src/main.rs | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5bf903d..9cfe2da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1243,7 +1243,9 @@ checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" [[package]] name = "libium" -version = "1.23.2" +version = "1.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b5c34f3909ffd1377d0b25d34a66ec49c0b0250dd07135b2d67bd7dc971d55d" dependencies = [ "async-recursion", "async_zip", diff --git a/Cargo.toml b/Cargo.toml index fa4b7f1..63cf14e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,8 +42,7 @@ once_cell = "1.19" fs_extra = "1.3" colored = "2.1" ferinth = "2.10" -# libium = "1.24" -libium = { path = "../libium" } +libium = "1.24" anyhow = "1.0" furse = "1.5" size = "0.4" diff --git a/src/cli.rs b/src/cli.rs index 219f675..a3f486c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -86,7 +86,7 @@ pub enum SubCommands { }, /// List all the profiles with their data Profiles, - /// Remove mods and repositories from the profile. + /// Remove mods and/or repositories from the profile. /// Optionally, provide a list of names or IDs of the mods to remove. #[clap(visible_alias = "rm")] Remove { @@ -149,7 +149,6 @@ pub enum ProfileSubCommands { #[clap(visible_aliases = ["remove", "rm"])] Delete { /// The name of the profile to delete - #[clap(long, short = 'n')] profile_name: Option, }, /// Show information about the current profile @@ -160,7 +159,6 @@ pub enum ProfileSubCommands { /// Optionally, provide the name of the profile to switch to. Switch { /// The name of the profile to switch to - #[clap(long, short = 'n')] profile_name: Option, }, } @@ -212,7 +210,6 @@ pub enum ModpackSubCommands { /// Optionally, provide the name of the modpack to switch to. Switch { /// The name of the modpack to switch to - #[clap(long, short = 'n')] modpack_name: Option, }, /// Download and install the latest version of the modpack diff --git a/src/main.rs b/src/main.rs index 122d668..38208e3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -285,7 +285,7 @@ async fn actual_main(mut cli_app: Ferium) -> Result<()> { } } else { println!( - "Listing Profile {} {} on {:6} {:7}\n", + "{} {} on {:6} {:7}\n", profile.name.bold(), format!("({} mods)", profile.mods.len()).yellow(), format!("{:?}", profile.mod_loader).purple(),