(agent codersdk.WorkspaceAgent)
| 323 | } |
| 324 | |
| 325 | func 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 | |
| 332 | func renderAgentVersion(agentVersion, serverVersion string) string { |
| 333 | if agentVersion == "" { |
no outgoing calls
no test coverage detected