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

Function spinner

cmd/display/tty.go:640–651  ·  view source on GitHub ↗
(t *task)

Source from the content-addressed store, hash-verified

638)
639
640func spinner(t *task) string {
641 switch t.status {
642 case api.Done:
643 return SuccessColor(spinnerDone)
644 case api.Warning:
645 return WarningColor(spinnerWarning)
646 case api.Error:
647 return ErrorColor(spinnerError)
648 default:
649 return CountColor(t.spinner.String())
650 }
651}
652
653func colorFn(s api.EventStatus) colorFunc {
654 switch s {

Callers 1

prepareLineDataMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected