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

Function formatStatusText

internal/ui/plugins/guestlist/view.go:478–485  ·  view source on GitHub ↗
(status string)

Source from the content-addressed store, hash-verified

476}
477
478func formatStatusText(status string) string {
479 status = strings.TrimSpace(status)
480 if status == "" {
481 return api.StringNA
482 }
483
484 return strings.ToUpper(status[:1]) + status[1:]
485}
486
487func statusColorFor(status string) tcell.Color {
488 switch strings.ToLower(status) {

Callers 1

populateTableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected