write to app writer

This commit is contained in:
Yasuhiro Matsumoto 2017-04-16 22:27:13 +09:00
parent 04baed6e1a
commit 594708b656

View File

@ -13,9 +13,9 @@ func cmdInstance(c *cli.Context) error {
if err != nil {
return err
}
fmt.Printf("URI : %s\n", instance.URI)
fmt.Printf("Title : %s\n", instance.Title)
fmt.Printf("Description: %s\n", instance.Description)
fmt.Printf("EMail : %s\n", instance.EMail)
fmt.Fprintf(c.App.Writer, "URI : %s\n", instance.URI)
fmt.Fprintf(c.App.Writer, "Title : %s\n", instance.Title)
fmt.Fprintf(c.App.Writer, "Description: %s\n", instance.Description)
fmt.Fprintf(c.App.Writer, "EMail : %s\n", instance.EMail)
return nil
}