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

Method ApplicationList

internal/display/apps.go:153–173  ·  view source on GitHub ↗
(clients []*management.Client, revealSecrets bool)

Source from the content-addressed store, hash-verified

151}
152
153func (r *Renderer) ApplicationList(clients []*management.Client, revealSecrets bool) {
154 resource := "applications"
155
156 r.Heading(fmt.Sprintf("%s (%v)", resource, len(clients)))
157
158 if len(clients) == 0 {
159 r.EmptyState(resource, "Use 'auth0 apps create' to add one")
160 return
161 }
162
163 var res []View
164 for _, c := range clients {
165 if !revealSecrets {
166 c.ClientSecret = auth0.String("")
167 }
168
169 res = append(res, makeApplicationView(c, revealSecrets))
170 }
171
172 r.Results(res)
173}
174
175func (r *Renderer) ApplicationShow(client *management.Client, revealSecrets bool) {
176 r.Heading("application")

Callers 1

listAppsCmdFunction · 0.80

Calls 4

HeadingMethod · 0.95
EmptyStateMethod · 0.95
ResultsMethod · 0.95
makeApplicationViewFunction · 0.85

Tested by

no test coverage detected