MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / getHealthStatusFormatted

Function getHealthStatusFormatted

pkg/cmd/worker/view/view.go:143–156  ·  view source on GitHub ↗
(status string)

Source from the content-addressed store, hash-verified

141}
142
143func getHealthStatusFormatted(status string) string {
144 switch status {
145 case "Healthy":
146 return output.Green(status)
147 case "Unhealthy":
148 return output.Red(status)
149 case "HasWarnings":
150 return output.Yellow("Has Warnings")
151 case "Unavailable":
152 return output.Dim(status)
153 default:
154 return status
155 }
156}
157
158func getWorkerTypeDisplayName(communicationStyle string) string {
159 switch communicationStyle {

Callers 2

getWorkerAsTableRowFunction · 0.85
getWorkerAsBasicFunction · 0.85

Calls 4

GreenFunction · 0.92
RedFunction · 0.92
YellowFunction · 0.92
DimFunction · 0.92

Tested by

no test coverage detected