//Show displays the details of an Account. func Show(cmd *cli.Cmd) { email := cmd.String(cli.StringArg{ Name: "EMAIL", Desc: "email address", HideValue: true, }) cmd.Action = func() { a := authorization.Account{ Email: *email, } account, resp, errs := a.ShowAcct() if len(errs) > 0 { log.Fatalf("Could not retrieve account: %s", errs[0]) } if resp.StatusCode != 200 { log.Fatalf("Could not retrieve account: %s", resp.Status) } printAccountDetail(account) } }