Make fields in ResponseInfo be flat

This commit is contained in:
Jae Kwon
2016-12-26 17:44:36 -08:00
committed by Ethan Buchman
parent 0d82d26408
commit 8b76f3dd00
15 changed files with 186 additions and 254 deletions

View File

@ -228,8 +228,11 @@ func cmdEcho(c *cli.Context) error {
// Get some info from the application
func cmdInfo(c *cli.Context) error {
res, _, _, _ := client.InfoSync()
rsp := newResponse(res, string(res.Data), false)
resInfo, err := client.InfoSync()
if err != nil {
return err
}
rsp := newResponse(types.Result{}, string(resInfo.Data), false)
printResponse(c, rsp)
return nil
}