(customDomains []*management.CustomDomain)
| 97 | } |
| 98 | |
| 99 | func (r *Renderer) CustomDomainList(customDomains []*management.CustomDomain) { |
| 100 | resource := "custom domains" |
| 101 | |
| 102 | r.Heading(resource) |
| 103 | |
| 104 | if len(customDomains) == 0 { |
| 105 | r.EmptyState(resource, "Use 'auth0 domains create' to add one") |
| 106 | return |
| 107 | } |
| 108 | |
| 109 | var res []View |
| 110 | for _, customDomain := range customDomains { |
| 111 | res = append(res, makeCustomDomainView(customDomain)) |
| 112 | } |
| 113 | |
| 114 | r.Results(res) |
| 115 | } |
| 116 | |
| 117 | func (r *Renderer) CustomDomainShow(customDomain *management.CustomDomain) { |
| 118 | r.Heading("custom domain") |
no test coverage detected