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

Method InvitationsList

internal/display/invitations.go:42–58  ·  view source on GitHub ↗
(invitations []management.OrganizationInvitation)

Source from the content-addressed store, hash-verified

40}
41
42func (r *Renderer) InvitationsList(invitations []management.OrganizationInvitation) {
43 resource := "organization invitations"
44
45 r.Heading(resource)
46
47 if len(invitations) == 0 {
48 r.EmptyState(resource, "Use 'auth0 orgs invs create' to add one")
49 return
50 }
51
52 var res []View
53 for _, m := range invitations {
54 res = append(res, makeInvitationsView(m))
55 }
56
57 r.Results(res)
58}
59
60func (r *Renderer) InvitationsCreate(invitation management.OrganizationInvitation) {
61 r.Heading("organization invitation created")

Callers 1

Calls 4

HeadingMethod · 0.95
EmptyStateMethod · 0.95
ResultsMethod · 0.95
makeInvitationsViewFunction · 0.85

Tested by

no test coverage detected