MCPcopy
hub / github.com/cli/cli / SessionSymbol

Function SessionSymbol

pkg/cmd/agent-task/shared/display.go:53–63  ·  view source on GitHub ↗
(cs *iostreams.ColorScheme, state string)

Source from the content-addressed store, hash-verified

51type ColorFunc func(string) string
52
53func SessionSymbol(cs *iostreams.ColorScheme, state string) string {
54 noColor := func(s string) string { return s }
55 switch state {
56 case "completed":
57 return cs.SuccessIconWithColor(noColor)
58 case "failed", "timed_out", "cancelled":
59 return cs.FailureIconWithColor(noColor)
60 default:
61 return "-"
62 }
63}

Callers

nothing calls this directly

Calls 2

SuccessIconWithColorMethod · 0.80
FailureIconWithColorMethod · 0.80

Tested by

no test coverage detected