(cs *iostreams.ColorScheme, state string)
| 51 | type ColorFunc func(string) string |
| 52 | |
| 53 | func 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 | } |
nothing calls this directly
no test coverage detected