diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/io.rs | 2 | ||||
-rw-r--r-- | src/commands/modification.rs | 3 |
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 | ||
39 | pub async fn mod_add( | 38 | pub 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) |