MCPcopy
hub / github.com/cloudfoundry/cli / Failed

Method Failed

cf/terminal/ui.go:158–173  ·  view source on GitHub ↗
(message string, args ...interface{})

Source from the content-addressed store, hash-verified

156}
157
158func (ui *terminalUI) Failed(message string, args ...interface{}) {
159 message = fmt.Sprintf(message, args...)
160
161 failed := "FAILED"
162 if T != nil {
163 failed = T("FAILED")
164 }
165
166 ui.logger.Print(failed)
167 ui.logger.Print(message)
168
169 if !ui.logger.WritesToConsole() {
170 ui.Say(FailureColor(failed))
171 ui.Say(message)
172 }
173}
174
175func (ui *terminalUI) ShowConfiguration(config coreconfig.Reader) error {
176 var err error

Callers 1

PrintPaginatorMethod · 0.95

Calls 4

SayMethod · 0.95
FailureColorFunction · 0.85
PrintMethod · 0.65
WritesToConsoleMethod · 0.65

Tested by

no test coverage detected