MCPcopy Index your code
hub / github.com/ddev/ddev / Warning

Function Warning

pkg/util/utils.go:91–98  ·  view source on GitHub ↗

Warning will present the user with warning text.

(format string, a ...any)

Source from the content-addressed store, hash-verified

89
90// Warning will present the user with warning text.
91func Warning(format string, a ...any) {
92 format = ColorizeText(format, "yellow")
93 if a != nil {
94 output.UserErr.Warnf(format, a...)
95 } else {
96 output.UserErr.Warn(format)
97 }
98}
99
100// WarningOnce will present the user with warning text only once per message.
101func WarningOnce(format string, a ...any) {

Callers 15

PullMethod · 0.92
PushMethod · 0.92
UploadDBMethod · 0.92
UploadFilesMethod · 0.92
doFilesPullCommandMethod · 0.92
getDatabaseBackupsMethod · 0.92
TestDdevFullSiteSetupFunction · 0.92
StartDdevRouterFunction · 0.92

Calls 2

ColorizeTextFunction · 0.85
WarnfMethod · 0.80

Tested by 1

TestDdevFullSiteSetupFunction · 0.74