From 45962918683290be0a0ed9091d23f86f20a6d33e Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 14 Jan 2024 10:20:11 +0100 Subject: Additional stream tag types and flags + optional fields. --- src/bin/zot/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/bin/zot/main.rs') diff --git a/src/bin/zot/main.rs b/src/bin/zot/main.rs index 209e097..83ae916 100644 --- a/src/bin/zot/main.rs +++ b/src/bin/zot/main.rs @@ -117,7 +117,12 @@ async fn main() -> Result<(), Box<(dyn std::error::Error + 'static)>> { } } ("stream", Some(_)) => { - let s = Stream::from_json(&z.channel_stream().await?)?; + let json = z.channel_stream().await?; + + std::fs::write("channel_stream.json", &json) + .expect("Unable to write channel_stream.json file"); + + let s = Stream::from_json(&json)?; for item in s.items { if item.is_post() { if item.title.len() > 0 { -- cgit v1.2.3