(organizations []*management.Organization)
| 44 | } |
| 45 | |
| 46 | func (r *Renderer) OrganizationList(organizations []*management.Organization) { |
| 47 | resource := "organizations" |
| 48 | |
| 49 | r.Heading(resource) |
| 50 | |
| 51 | if len(organizations) == 0 { |
| 52 | r.EmptyState(resource, "Use 'auth0 orgs create' to add one") |
| 53 | return |
| 54 | } |
| 55 | |
| 56 | var res []View |
| 57 | for _, o := range organizations { |
| 58 | res = append(res, makeOrganizationView(o)) |
| 59 | } |
| 60 | |
| 61 | r.Results(res) |
| 62 | } |
| 63 | |
| 64 | func (r *Renderer) OrganizationShow(organization *management.Organization) { |
| 65 | r.Heading("organization") |
no test coverage detected