MCPcopy Index your code
hub / github.com/cloudfoundry/cli / DisplayKeyValueTableForApp

Method DisplayKeyValueTableForApp

util/ui/ui_for_app.go:21–31  ·  view source on GitHub ↗
(table [][]string)

Source from the content-addressed store, hash-verified

19}
20
21func (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}

Callers

nothing calls this directly

Calls 3

TranslateTextMethod · 0.95
modifyColorMethod · 0.95
DisplayKeyValueTableMethod · 0.95

Tested by

no test coverage detected