diff options
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 4 |
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] |
131 | fn input_from() { | 131 | fn 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 | } |