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

Method DisplayHeader

util/ui/ui.go:219–224  ·  view source on GitHub ↗

DisplayHeader translates the header, bolds and adds the default color to the header, and outputs the result to ui.Out.

(text string)

Source from the content-addressed store, hash-verified

217// DisplayHeader translates the header, bolds and adds the default color to the
218// header, and outputs the result to ui.Out.
219func (ui *UI) DisplayHeader(text string) {
220 ui.terminalLock.Lock()
221 defer ui.terminalLock.Unlock()
222
223 fmt.Fprintf(ui.Out, "%s\n", ui.modifyColor(ui.TranslateText(text), color.New(color.Bold)))
224}
225
226// DisplayNewline outputs a newline to UI.Out.
227func (ui *UI) DisplayNewline() {

Callers

nothing calls this directly

Calls 2

modifyColorMethod · 0.95
TranslateTextMethod · 0.95

Tested by

no test coverage detected