summaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2022-11-19 21:31:37 +0100
committerFxQnLr <[email protected]>2022-11-19 21:31:37 +0100
commit477e0ecbb7bb34b581c518bfc2bc7ebc210b4673 (patch)
tree2a1a883f785bfaf9d8aa20eb9a7c29737c01e07e /src/input.rs
parentfdd7525e5a0d298ebb8a9aa81cc19ec79e8cd113 (diff)
downloadmodlist-477e0ecbb7bb34b581c518bfc2bc7ebc210b4673.tar
modlist-477e0ecbb7bb34b581c518bfc2bc7ebc210b4673.tar.gz
modlist-477e0ecbb7bb34b581c518bfc2bc7ebc210b4673.zip
added clean to download
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs
index 109fa0c..19aa2c2 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -122,7 +122,7 @@ pub async fn get_input(config: Cfg) -> Result<(), Box<dyn std::error::Error>> {
122 setup(config).await 122 setup(config).await
123 }, 123 },
124 Cmd::Download => { 124 Cmd::Download => {
125 download(config).await 125 download(config, input).await
126 } 126 }
127 } 127 }
128} 128}
@@ -130,6 +130,6 @@ pub async fn get_input(config: Cfg) -> Result<(), Box<dyn std::error::Error>> {
130#[test] 130#[test]
131fn input_from() { 131fn input_from() {
132 let string = "lis add test 1.19.2 fabric"; 132 let string = "lis add test 1.19.2 fabric";
133 let input = Input{ command: Cmd::List, subcommand: Some(Subcmd::Add), args: Some(vec![String::from("test"), String::from("1.19.2"), String::from("fabric")]), force_download: false, direct_download: false, all_lists: false }; 133 let input = Input{ command: Cmd::List, subcommand: Some(Subcmd::Add), args: Some(vec![String::from("test"), String::from("1.19.2"), String::from("fabric")]), force_download: false, direct_download: false, all_lists: false, clean: false, delete_old: false };
134 assert_eq!(Input::from(string).unwrap(), input); 134 assert_eq!(Input::from(string).unwrap(), input);
135} 135}