Clean up presentation of items in command line client
This commit is contained in:
parent
545fd6ca03
commit
899588d73e
|
@ -258,7 +258,10 @@ Commands:
|
||||||
}
|
}
|
||||||
|
|
||||||
func showItem(item *microsub.Item) {
|
func showItem(item *microsub.Item) {
|
||||||
fmt.Printf("%s - %s - %s\n", item.Name, item.Published, item.ID)
|
if item.Name != "" {
|
||||||
|
fmt.Printf("%s - ", item.Name)
|
||||||
|
}
|
||||||
|
fmt.Printf("%s\n", item.Published)
|
||||||
if item.Content != nil {
|
if item.Content != nil {
|
||||||
if item.Content.Text != "" {
|
if item.Content.Text != "" {
|
||||||
fmt.Println(item.Content.Text)
|
fmt.Println(item.Content.Text)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user