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

Function customDomainStatusColor

internal/display/custom_domain.go:180–191  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

178}
179
180func customDomainStatusColor(v string) string {
181 switch v {
182 case "disabled":
183 return ansi.Red(v)
184 case "pending", "pending_verification":
185 return ansi.Yellow(v)
186 case "ready":
187 return ansi.Green(v)
188 default:
189 return v
190 }
191}
192
193type customDomainDefaultView struct {
194 Domain string

Callers 1

makeCustomDomainViewFunction · 0.85

Calls 3

RedFunction · 0.92
YellowFunction · 0.92
GreenFunction · 0.92

Tested by

no test coverage detected