From 8398b4003b72b3eefea11d8f71897ddb48f4b0ad Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Sat, 13 May 2023 12:37:07 +0200 Subject: impl of set_version import --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 4979386..31a320b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ use modlist::{ config::Cfg, db::{config_get_current_list, lists_get, lists_get_all_ids}, download, export, get_current_list, import, list_add, list_change, list_remove, list_version, - mod_add, mod_remove, update, IDSelector, List, Modloader, VersionLevel, list_list, + mod_add, mod_remove, update, IDSelector, List, Modloader, VersionLevel, list_list, AddMod, }; #[derive(Parser)] @@ -184,7 +184,9 @@ async fn main() { false => IDSelector::ModificationID(id), }; - mod_add(config, vec![marked_id], listf, download, lock).await + let add_id = AddMod { id: marked_id, set_version: lock }; + + mod_add(config, vec![add_id], listf, download).await } ModCommands::Remove { id, list } => { let listf = match list { -- cgit v1.2.3