summaryrefslogtreecommitdiff
path: root/src/commands/download.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2022-11-25 15:52:20 +0100
committerFxQnLr <[email protected]>2022-11-25 15:52:20 +0100
commitd8cb7bc5f9c2e01c82f954427a60da6eaf0610ca (patch)
treedcb68d55e52f71dbac6d9c10c9a09a8b0cab9c85 /src/commands/download.rs
parentc00673fd0e01d1438798dbb1635a761a76a2b559 (diff)
downloadmodlist-d8cb7bc5f9c2e01c82f954427a60da6eaf0610ca.tar
modlist-d8cb7bc5f9c2e01c82f954427a60da6eaf0610ca.tar.gz
modlist-d8cb7bc5f9c2e01c82f954427a60da6eaf0610ca.zip
added direct download
Diffstat (limited to 'src/commands/download.rs')
-rw-r--r--src/commands/download.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/download.rs b/src/commands/download.rs
index 82d6b02..13ba0e1 100644
--- a/src/commands/download.rs
+++ b/src/commands/download.rs
@@ -1,15 +1,19 @@
1#[allow(unused_imports)]
1use crate::{List, get_current_list, config::Cfg, db::userlist_get_all_downloads, input::Input}; 2use crate::{List, get_current_list, config::Cfg, db::userlist_get_all_downloads, input::Input};
2 3
3pub async fn download(config: Cfg, input: Input) -> Result<(), Box<dyn std::error::Error>> { 4pub async fn download(_config: Cfg, _input: Input) -> Result<(), Box<dyn std::error::Error>> {
5 println!("NO IMPLEMENTATION FOR DOWNLOAD YET");
6 /*
4 let list = get_current_list(config.clone())?; 7 let list = get_current_list(config.clone())?;
5 8
6 let links = userlist_get_all_downloads(config.clone(), list.clone().id)?; 9 let links = userlist_get_all_downloads(config.clone(), list.clone().id)?;
7 10
8 download_links(config, input, list, links).await?; 11 download_links(config, input, list, links).await?;
9 12 */
10 Ok(()) 13 Ok(())
11} 14}
12 15
16#[allow(dead_code)]
13async fn download_links(_config: Cfg, _input: Input, _current_list: List, _links: Vec<String>) -> Result<String, Box<dyn std::error::Error>> { 17async fn download_links(_config: Cfg, _input: Input, _current_list: List, _links: Vec<String>) -> Result<String, Box<dyn std::error::Error>> {
14 println!("NO DL IMPLEMENTATION FOR DOWNLOAD YET"); 18 println!("NO DL IMPLEMENTATION FOR DOWNLOAD YET");
15 //TODO copy dl from update if possible 19 //TODO copy dl from update if possible