MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / agentStateCell

Function agentStateCell

internal/ui/plugins/guestlist/view.go:517–526  ·  view source on GitHub ↗
(row guestRow)

Source from the content-addressed store, hash-verified

515}
516
517func agentStateCell(row guestRow) (string, tcell.Color) {
518 switch {
519 case row.agentEnabled && row.agentRunning:
520 return "Running", theme.Colors.Success
521 case row.agentEnabled:
522 return "Enabled", theme.Colors.Warning
523 default:
524 return "Disabled", theme.Colors.Secondary
525 }
526}

Callers 1

populateTableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected