From 2fed42fbf434ad53755514b3af5472326e98c26d Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 6 Jul 2026 14:15:46 +0200 Subject: [PATCH] print ask passwd prompt to stderr --- pkg/cfg/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cfg/cluster.go b/pkg/cfg/cluster.go index 98374c3..7d2a28a 100644 --- a/pkg/cfg/cluster.go +++ b/pkg/cfg/cluster.go @@ -113,7 +113,7 @@ func (cluster *Cluster) CheckAuth() error { cluster.Pass = pass } else { // k, try interactively - fmt.Printf("Enter password for elasticsearch user %s@%s: ", cluster.User, cluster.Name) + fmt.Fprintf(os.Stderr, "Enter password for elasticsearch user %s@%s: ", cluster.User, cluster.Name) pass, err := term.ReadPassword(int(syscall.Stdin)) if err != nil { return err