write to app writer

pull/19/head
Yasuhiro Matsumoto 2017-04-16 22:27:13 +09:00
parent 04baed6e1a
commit 594708b656
1 changed files with 4 additions and 4 deletions

View File

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