diff options
author | fxqnlr <[email protected]> | 2023-05-25 22:48:54 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2023-05-25 22:48:54 +0200 |
commit | d8554e30029bf43dccce72e982784cd01857b0c4 (patch) | |
tree | 72b4ee26a4f980deb1165e615e47598be017e5fa /src/commands/list.rs | |
parent | 7f1a262999d7a8b7f12a97daf4b6722638dc62a1 (diff) | |
download | modlist-d8554e30029bf43dccce72e982784cd01857b0c4.tar modlist-d8554e30029bf43dccce72e982784cd01857b0c4.tar.gz modlist-d8554e30029bf43dccce72e982784cd01857b0c4.zip |
added mod add progress
Diffstat (limited to 'src/commands/list.rs')
-rw-r--r-- | src/commands/list.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/list.rs b/src/commands/list.rs index 95f9927..52f14f2 100644 --- a/src/commands/list.rs +++ b/src/commands/list.rs | |||
@@ -18,7 +18,7 @@ pub struct List { | |||
18 | 18 | ||
19 | pub fn get_current_list(config: &Cfg) -> MLE<List> { | 19 | pub fn get_current_list(config: &Cfg) -> MLE<List> { |
20 | let id = config_get_current_list(config)?; | 20 | let id = config_get_current_list(config)?; |
21 | lists_get(config, id) | 21 | lists_get(config, &id) |
22 | } | 22 | } |
23 | 23 | ||
24 | pub fn list_add( | 24 | pub fn list_add( |
@@ -52,7 +52,7 @@ pub fn list_remove(config: &Cfg, id: String) -> MLE<()> { | |||
52 | /// * `args` - All args, to extract the new version | 52 | /// * `args` - All args, to extract the new version |
53 | pub async fn list_version( | 53 | pub async fn list_version( |
54 | config: &Cfg, | 54 | config: &Cfg, |
55 | id: String, | 55 | id: &str, |
56 | mc_version: String, | 56 | mc_version: String, |
57 | download: bool, | 57 | download: bool, |
58 | delete: bool, | 58 | delete: bool, |
@@ -62,7 +62,7 @@ pub async fn list_version( | |||
62 | id, mc_version | 62 | id, mc_version |
63 | ); | 63 | ); |
64 | 64 | ||
65 | lists_version(config, &id, &mc_version)?; | 65 | lists_version(config, id, &mc_version)?; |
66 | 66 | ||
67 | println!( | 67 | println!( |
68 | "\nCheck for updates for new minecraft version in list {}", | 68 | "\nCheck for updates for new minecraft version in list {}", |
@@ -75,7 +75,7 @@ pub async fn list_version( | |||
75 | pub fn list_list(config: &Cfg) -> MLE<()> { | 75 | pub fn list_list(config: &Cfg) -> MLE<()> { |
76 | let lists = lists_get_all_ids(config)?; | 76 | let lists = lists_get_all_ids(config)?; |
77 | for list in lists { | 77 | for list in lists { |
78 | let l = lists_get(config, list)?; | 78 | let l = lists_get(config, &list)?; |
79 | println!("{}: | {} | {}", l.id, l.mc_version, l.modloader) | 79 | println!("{}: | {} | {}", l.id, l.mc_version, l.modloader) |
80 | } | 80 | } |
81 | Ok(()) | 81 | Ok(()) |