MCPcopy Create free account
hub / github.com/auth0/auth0-cli / OrganizationList

Method OrganizationList

internal/display/organizations.go:46–62  ·  view source on GitHub ↗
(organizations []*management.Organization)

Source from the content-addressed store, hash-verified

44}
45
46func (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
64func (r *Renderer) OrganizationShow(organization *management.Organization) {
65 r.Heading("organization")

Callers 1

listOrganizationsCmdFunction · 0.80

Calls 4

HeadingMethod · 0.95
EmptyStateMethod · 0.95
ResultsMethod · 0.95
makeOrganizationViewFunction · 0.85

Tested by

no test coverage detected