summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
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::{
3 config::Cfg, 3 config::Cfg,
4 db::{config_get_current_list, lists_get, lists_get_all_ids}, 4 db::{config_get_current_list, lists_get, lists_get_all_ids},
5 download, export, get_current_list, import, list_add, list_change, list_remove, list_version, 5 download, export, get_current_list, import, list_add, list_change, list_remove, list_version,
6 mod_add, mod_remove, update, IDSelector, List, Modloader, VersionLevel, list_list, 6 mod_add, mod_remove, update, IDSelector, List, Modloader, VersionLevel, list_list, AddMod,
7}; 7};
8 8
9#[derive(Parser)] 9#[derive(Parser)]
@@ -184,7 +184,9 @@ async fn main() {
184 false => IDSelector::ModificationID(id), 184 false => IDSelector::ModificationID(id),
185 }; 185 };
186 186
187 mod_add(config, vec![marked_id], listf, download, lock).await 187 let add_id = AddMod { id: marked_id, set_version: lock };
188
189 mod_add(config, vec![add_id], listf, download).await
188 } 190 }
189 ModCommands::Remove { id, list } => { 191 ModCommands::Remove { id, list } => {
190 let listf = match list { 192 let listf = match list {