use writer

This commit is contained in:
Yasuhiro Matsumoto 2017-04-16 23:04:31 +09:00
parent 86066b9561
commit e1b7bac4e6
5 changed files with 21 additions and 21 deletions

View file

@ -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
}