use writer
This commit is contained in:
parent
86066b9561
commit
e1b7bac4e6
5 changed files with 21 additions and 21 deletions
|
@ -17,9 +17,9 @@ func cmdTimeline(c *cli.Context) error {
|
|||
for i := len(timeline) - 1; i >= 0; i-- {
|
||||
t := timeline[i]
|
||||
color.Set(color.FgHiRed)
|
||||
fmt.Println(t.Account.Username)
|
||||
fmt.Fprintln(c.App.Writer, t.Account.Username)
|
||||
color.Set(color.Reset)
|
||||
fmt.Println(textContent(t.Content))
|
||||
fmt.Fprintln(c.App.Writer, textContent(t.Content))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue