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

Function actionStatus

internal/display/actions.go:125–138  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

123}
124
125func actionStatus(v string) string {
126 switch strings.ToLower(v) {
127 case "failed":
128 return ansi.Red(v)
129 case "pending", "retrying":
130 return ansi.Yellow(v)
131 case "building", "packaged":
132 return ansi.Blue(v)
133 case "built":
134 return ansi.Green(v)
135 default: // Including "unspecified".
136 return v
137 }
138}

Callers 1

makeActionViewFunction · 0.85

Calls 4

RedFunction · 0.92
YellowFunction · 0.92
BlueFunction · 0.92
GreenFunction · 0.92

Tested by

no test coverage detected