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

Function makeUserView

internal/display/users.go:169–179  ·  view source on GitHub ↗
(user *management.User, requireUsername bool)

Source from the content-addressed store, hash-verified

167}
168
169func makeUserView(user *management.User, requireUsername bool) *userView {
170 return &userView{
171 RequireUsername: requireUsername,
172 UserID: ansi.Faint(auth0.StringValue(user.ID)),
173 Email: auth0.StringValue(user.Email),
174 Connection: stringSliceToCommaSeparatedString(getUserConnection(user)),
175 Username: auth0.StringValue(user.Username),
176 PhoneNumber: auth0.StringValue(user.PhoneNumber),
177 raw: user,
178 }
179}
180
181func getUserConnection(users *management.User) []string {
182 var res []string

Callers 5

UserSearchMethod · 0.85
UserPromptMethod · 0.85
UserShowMethod · 0.85
UserCreateMethod · 0.85
UserUpdateMethod · 0.85

Calls 3

FaintFunction · 0.92
getUserConnectionFunction · 0.85

Tested by

no test coverage detected