diff options
author | FxQnLr <[email protected]> | 2023-05-13 12:37:07 +0200 |
---|---|---|
committer | FxQnLr <[email protected]> | 2023-05-13 12:37:07 +0200 |
commit | 8398b4003b72b3eefea11d8f71897ddb48f4b0ad (patch) | |
tree | e389808b24fca06aed882177c9d70a5d9121c619 /src/main.rs | |
parent | bf8fa23bf00584e4efa3060cf8ca4932173061c9 (diff) | |
download | modlist-8398b4003b72b3eefea11d8f71897ddb48f4b0ad.tar modlist-8398b4003b72b3eefea11d8f71897ddb48f4b0ad.tar.gz modlist-8398b4003b72b3eefea11d8f71897ddb48f4b0ad.zip |
impl of set_version import
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
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 { |