From 477e0ecbb7bb34b581c518bfc2bc7ebc210b4673 Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Sat, 19 Nov 2022 21:31:37 +0100 Subject: added clean to download --- src/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input.rs') 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> { setup(config).await }, Cmd::Download => { - download(config).await + download(config, input).await } } } @@ -130,6 +130,6 @@ pub async fn get_input(config: Cfg) -> Result<(), Box> { #[test] fn input_from() { let string = "lis add test 1.19.2 fabric"; - 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 }; + 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 }; assert_eq!(Input::from(string).unwrap(), input); } -- cgit v1.2.3