MCPcopy
hub / github.com/cli/cli / ColorForProjectState

Function ColorForProjectState

pkg/cmd/project/shared/format/display.go:14–19  ·  view source on GitHub ↗
(project queries.Project)

Source from the content-addressed store, hash-verified

12}
13
14func ColorForProjectState(project queries.Project) string {
15 if project.Closed {
16 return "gray"
17 }
18 return "green"
19}

Callers 2

printResultsFunction · 0.92
TestColorForProjectStateFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestColorForProjectStateFunction · 0.68