MCPcopy Index your code
hub / github.com/apache/answer / printWarning

Function printWarning

internal/cli/reset_password.go:275–281  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

273}
274
275func printWarning(msg string) {
276 if runtime.GOOS == "windows" {
277 fmt.Printf("[WARNING] %s\n", msg)
278 } else {
279 fmt.Printf("\033[31m[WARNING] %s\033[0m\n", msg)
280 }
281}
282
283func confirmAction(prompt string) bool {
284 reader := bufio.NewReader(os.Stdin)

Callers 1

ResetPasswordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected