feat(install): skip already installed mods in install cmd

This commit is contained in:
RafayAhmad7548 2026-09-03 16:45:40 +05:00
parent ea766de5c3
commit 86a46f7562
Signed by: RafayAhmad
SSH key fingerprint: SHA256:WURX8viobA1uawb4dWM3LqYrY+XPcZcXhAXAlrYdhtE

View file

@ -40,6 +40,11 @@ impl Install {
let client = reqwest::Client::new();
for mod_name in &self.mods {
if config.mods.contains_key(mod_name) {
println!("{} mod already installed, skipping...", mod_name);
continue;
}
let url = format!("{}/project/{}/version", Self::BASE_URL, mod_name);
let params = InstallQueryParams {