From 6d57b4e58d623d3e1ab19ccb3cabccfa9fa9d795 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 12 May 2018 14:37:51 +0200 Subject: [PATCH] Improve display of items --- cmd/client/main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/client/main.go b/cmd/client/main.go index 8d0afa8..d3c9158 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -202,11 +202,10 @@ func performCommands(sub microsub.Microsub, commands []string) { } func showItem(item *microsub.Item) { - fmt.Printf("------- %s\n", item.Published) - if item.Name == "" && item.Content != nil { - fmt.Println(item.Content.HTML) - } else { - fmt.Println(item.Name) + fmt.Printf("%s - %s - %s\n", item.Name, item.Published, item.ID) + if item.Content != nil && item.Content.Text != "" { + fmt.Println(item.Content.Text) } fmt.Println(item.URL) + fmt.Println() }