(table [][]string)
| 19 | } |
| 20 | |
| 21 | func (ui *UI) DisplayKeyValueTableForApp(table [][]string) { |
| 22 | runningInstances := strings.Split(table[2][1], "/")[0] |
| 23 | state := table[1][1] |
| 24 | |
| 25 | if runningInstances == "0" && state != ui.TranslateText("stopped") { |
| 26 | redColor := color.New(color.FgRed, color.Bold) |
| 27 | table[1][1] = ui.modifyColor(table[1][1], redColor) |
| 28 | table[2][1] = ui.modifyColor(table[2][1], redColor) |
| 29 | } |
| 30 | ui.DisplayKeyValueTable("", table, 3) |
| 31 | } |
nothing calls this directly
no test coverage detected