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

Method CustomDomainList

internal/display/custom_domain.go:99–115  ·  view source on GitHub ↗
(customDomains []*management.CustomDomain)

Source from the content-addressed store, hash-verified

97}
98
99func (r *Renderer) CustomDomainList(customDomains []*management.CustomDomain) {
100 resource := "custom domains"
101
102 r.Heading(resource)
103
104 if len(customDomains) == 0 {
105 r.EmptyState(resource, "Use 'auth0 domains create' to add one")
106 return
107 }
108
109 var res []View
110 for _, customDomain := range customDomains {
111 res = append(res, makeCustomDomainView(customDomain))
112 }
113
114 r.Results(res)
115}
116
117func (r *Renderer) CustomDomainShow(customDomain *management.CustomDomain) {
118 r.Heading("custom domain")

Callers 1

listCustomDomainsCmdFunction · 0.80

Calls 4

HeadingMethod · 0.95
EmptyStateMethod · 0.95
ResultsMethod · 0.95
makeCustomDomainViewFunction · 0.85

Tested by

no test coverage detected