summaryrefslogtreecommitdiff
path: root/src/commands/download.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2022-12-28 13:15:10 +0100
committerfxqnlr <[email protected]>2022-12-28 13:15:10 +0100
commit5326d48f6e0a88ad42005c39b73f7baaf91c9b86 (patch)
tree154ff8715a2e0f121b285870d52c50f1737f7abc /src/commands/download.rs
parente1c79889d3bf02c8d131d642fed8ba7ef9521bf4 (diff)
downloadmodlist-5326d48f6e0a88ad42005c39b73f7baaf91c9b86.tar
modlist-5326d48f6e0a88ad42005c39b73f7baaf91c9b86.tar.gz
modlist-5326d48f6e0a88ad42005c39b73f7baaf91c9b86.zip
added devdir; better config dir
Diffstat (limited to 'src/commands/download.rs')
-rw-r--r--src/commands/download.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/download.rs b/src/commands/download.rs
index 0f9011c..b958bf3 100644
--- a/src/commands/download.rs
+++ b/src/commands/download.rs
@@ -11,12 +11,13 @@ pub async fn download(config: Cfg, input: Input) -> Result<(), Box<dyn std::erro
11 } 11 }
12 } else { 12 } else {
13 let current = get_current_list(config.clone())?; 13 let current = get_current_list(config.clone())?;
14 println!("Checking for updates of mods in {}", current.id); 14 println!("Downloading current versions of mods in {}", current.id);
15 liststack.push(current) 15 liststack.push(current)
16 } 16 }
17 17
18 for current_list in liststack { 18 for current_list in liststack {
19 let downloaded_versions = get_downloaded_versions(current_list.clone())?; 19 let downloaded_versions = get_downloaded_versions(current_list.clone())?;
20 println!("To download: {:#?}", downloaded_versions);
20 let current_version_ids = userlist_get_all_current_versions_with_mods(config.clone(), String::from(&current_list.id))?; 21 let current_version_ids = userlist_get_all_current_versions_with_mods(config.clone(), String::from(&current_list.id))?;
21 22
22 let mut to_download: Vec<String> = vec![]; 23 let mut to_download: Vec<String> = vec![];