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

Method UserSearch

internal/display/users.go:103–119  ·  view source on GitHub ↗
(users []*management.User)

Source from the content-addressed store, hash-verified

101}
102
103func (r *Renderer) UserSearch(users []*management.User) {
104 resource := "user"
105
106 r.Heading(resource)
107
108 if len(users) == 0 {
109 r.EmptyState(resource, "Use 'auth0 users create' to add one")
110 return
111 }
112
113 var res []View
114 for _, user := range users {
115 res = append(res, makeUserView(user, false))
116 }
117
118 r.Results(res)
119}
120
121func (r *Renderer) UserPrompt(users []*management.User, currentIndex *int) string {
122 resource := "user"

Callers 2

searchUsersCmdFunction · 0.80
searchUsersByEmailCmdFunction · 0.80

Calls 4

HeadingMethod · 0.95
EmptyStateMethod · 0.95
ResultsMethod · 0.95
makeUserViewFunction · 0.85

Tested by

no test coverage detected