(v string)
| 123 | } |
| 124 | |
| 125 | func actionStatus(v string) string { |
| 126 | switch strings.ToLower(v) { |
| 127 | case "failed": |
| 128 | return ansi.Red(v) |
| 129 | case "pending", "retrying": |
| 130 | return ansi.Yellow(v) |
| 131 | case "building", "packaged": |
| 132 | return ansi.Blue(v) |
| 133 | case "built": |
| 134 | return ansi.Green(v) |
| 135 | default: // Including "unspecified". |
| 136 | return v |
| 137 | } |
| 138 | } |
no test coverage detected