Improve display of items
This commit is contained in:
parent
e2b577eef9
commit
6d57b4e58d
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user