MCPcopy
hub / github.com/docker/compose / colorFn

Function colorFn

cmd/display/tty.go:653–664  ·  view source on GitHub ↗
(s api.EventStatus)

Source from the content-addressed store, hash-verified

651}
652
653func colorFn(s api.EventStatus) colorFunc {
654 switch s {
655 case api.Done:
656 return SuccessColor
657 case api.Warning:
658 return WarningColor
659 case api.Error:
660 return ErrorColor
661 default:
662 return nocolor
663 }
664}
665
666func numDone(tasks map[string]*task) int {
667 i := 0

Callers 1

prepareLineDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected