Warning will present the user with warning text.
(format string, a ...any)
| 89 | |
| 90 | // Warning will present the user with warning text. |
| 91 | func 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. |
| 101 | func WarningOnce(format string, a ...any) { |