summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-05-13 12:59:38 +0200
committerfxqnlr <[email protected]>2023-05-13 12:59:38 +0200
commit3181da20e001146653a09f0734e0340b043d9b4b (patch)
treeddcc522a96fc1ca99fac712b63f8dfecaf2f7517 /src/commands
parent8398b4003b72b3eefea11d8f71897ddb48f4b0ad (diff)
downloadmodlist-3181da20e001146653a09f0734e0340b043d9b4b.tar
modlist-3181da20e001146653a09f0734e0340b043d9b4b.tar.gz
modlist-3181da20e001146653a09f0734e0340b043d9b4b.zip
removed todos, fixed get version set
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/io.rs2
-rw-r--r--src/commands/modification.rs3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/commands/io.rs b/src/commands/io.rs
index 2bab132..dd294bc 100644
--- a/src/commands/io.rs
+++ b/src/commands/io.rs
@@ -110,8 +110,6 @@ pub async fn import(config: Cfg, file_str: String, direct_download: bool) -> MLE
110 for id in exportlist.versions { 110 for id in exportlist.versions {
111 ver_ids.push(AddMod { id: IDSelector::VersionID(id.version), set_version: id.set} ); 111 ver_ids.push(AddMod { id: IDSelector::VersionID(id.version), set_version: id.set} );
112 } 112 }
113 //TODO impl set_version and good direct download
114 //TODO impl all at once, dafuck ?done?
115 mod_add(config.clone(), ver_ids, list, direct_download).await?; 113 mod_add(config.clone(), ver_ids, list, direct_download).await?;
116 } 114 }
117 Ok(()) 115 Ok(())
diff --git a/src/commands/modification.rs b/src/commands/modification.rs
index ab42468..9a1a651 100644
--- a/src/commands/modification.rs
+++ b/src/commands/modification.rs
@@ -35,7 +35,6 @@ pub struct ProjectInfo {
35 pub set_version: bool, 35 pub set_version: bool,
36} 36}
37 37
38//TODO fix setversion to per mod
39pub async fn mod_add( 38pub async fn mod_add(
40 config: Cfg, 39 config: Cfg,
41 mods: Vec<AddMod>, 40 mods: Vec<AddMod>,
@@ -264,7 +263,7 @@ async fn get_ver_info(config: Cfg, ver_ids: Vec<(String, bool)>) -> MLE<Vec<Proj
264 current_version: Some(version.clone()), 263 current_version: Some(version.clone()),
265 applicable_versions: vec![String::from(&version.id)], 264 applicable_versions: vec![String::from(&version.id)],
266 download_link: file, 265 download_link: file,
267 set_version: setmap.get(&project.id).unwrap().clone(), 266 set_version: setmap.get(&version.id).unwrap().clone(),
268 }) 267 })
269 } 268 }
270 Ok(projectinfo) 269 Ok(projectinfo)