summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/list.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commands/list.rs b/src/commands/list.rs
index 8ec662d..4aa4306 100644
--- a/src/commands/list.rs
+++ b/src/commands/list.rs
@@ -70,3 +70,12 @@ pub async fn list_version(
70 let list = lists_get(config.clone(), id)?; 70 let list = lists_get(config.clone(), id)?;
71 update(config, vec![list], true, download, delete).await 71 update(config, vec![list], true, download, delete).await
72} 72}
73
74pub fn list_list(config: Cfg) -> MLE<()> {
75 let lists = lists_get_all_ids(config.clone())?;
76 for list in lists {
77 let l = lists_get(config.clone(), list)?;
78 println!("{}: | {} | {}", l.id, l.mc_version, l.modloader)
79 }
80 Ok(())
81}