From bfc5c2c68007785b3d58724c0dae355162341866 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Tue, 9 May 2023 21:02:23 +0200 Subject: added list for lists --- src/commands/list.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/commands') 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( let list = lists_get(config.clone(), id)?; update(config, vec![list], true, download, delete).await } + +pub fn list_list(config: Cfg) -> MLE<()> { + let lists = lists_get_all_ids(config.clone())?; + for list in lists { + let l = lists_get(config.clone(), list)?; + println!("{}: | {} | {}", l.id, l.mc_version, l.modloader) + } + Ok(()) +} -- cgit v1.2.3