From 3ca27bd893fc5d492568457d140308501d5244c3 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 26 Mar 2023 15:29:12 +0200 Subject: Make abook output prettier. Only print the most relevant information from the returned data. Output it as CSV (but we don't do any sort of escaping yet). This will probably not stay this way, but works as a demonstration for now. --- src/bin/zot/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bin/zot/main.rs b/src/bin/zot/main.rs index f2caac4..a8451b2 100644 --- a/src/bin/zot/main.rs +++ b/src/bin/zot/main.rs @@ -95,7 +95,9 @@ async fn main() { if m.is_present("raw") { println!("{}", r.fetch_raw(&client).await.unwrap()); } else { - println!("{:?}", r.fetch(&client).await); + for abook in r.fetch(&client).await.unwrap() { + println!("{},{},{}", abook.xchan.name, abook.xchan.address, abook.xchan.network); + } } } ("group", Some(m)) => { -- cgit v1.2.3