mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-25 01:04:18 +02:00
print ask passwd prompt to stderr
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user