MCPcopy Index your code
hub / github.com/coder/coder / renderAgentHealth

Function renderAgentHealth

cli/cliui/resources.go:325–330  ·  view source on GitHub ↗
(agent codersdk.WorkspaceAgent)

Source from the content-addressed store, hash-verified

323}
324
325func renderAgentHealth(agent codersdk.WorkspaceAgent) string {
326 if agent.Health.Healthy {
327 return pretty.Sprint(DefaultStyles.Keyword, "✔ healthy")
328 }
329 return pretty.Sprint(DefaultStyles.Error, "✘ "+agent.Health.Reason)
330}
331
332func renderAgentVersion(agentVersion, serverVersion string) string {
333 if agentVersion == "" {

Callers 2

renderAgentRowFunction · 0.85
renderDevcontainerRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected