summaryrefslogtreecommitdiff
path: root/src/commands/list.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-05-09 21:02:23 +0200
committerfxqnlr <[email protected]>2023-05-09 21:02:23 +0200
commitbfc5c2c68007785b3d58724c0dae355162341866 (patch)
tree120a59ed76b1e15f258d336627579a5bde7ec85b /src/commands/list.rs
parentd6415cf0e03dbb42c573a597d07ea1be5cd1fc44 (diff)
downloadmodlist-bfc5c2c68007785b3d58724c0dae355162341866.tar
modlist-bfc5c2c68007785b3d58724c0dae355162341866.tar.gz
modlist-bfc5c2c68007785b3d58724c0dae355162341866.zip
added list for lists
Diffstat (limited to 'src/commands/list.rs')
-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}