use writer
This commit is contained in:
parent
86066b9561
commit
e1b7bac4e6
5 changed files with 21 additions and 21 deletions
|
@ -19,13 +19,13 @@ func cmdSearch(c *cli.Context) error {
|
|||
return err
|
||||
}
|
||||
for _, result := range results.Accounts {
|
||||
fmt.Println(result)
|
||||
fmt.Fprintln(c.App.Writer, result)
|
||||
}
|
||||
for _, result := range results.Statuses {
|
||||
fmt.Println(result)
|
||||
fmt.Fprintln(c.App.Writer, result)
|
||||
}
|
||||
for _, result := range results.Hashtags {
|
||||
fmt.Println(result)
|
||||
fmt.Fprintln(c.App.Writer, result)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue