readpassword: improve comment on readPasswordStdin
This commit is contained in:
parent
1e9d735406
commit
2dd90ac19c
@ -66,8 +66,8 @@ func readPasswordTerminal(prompt string) string {
|
|||||||
return string(p)
|
return string(p)
|
||||||
}
|
}
|
||||||
|
|
||||||
// readPasswordStdin reads a line from stdin
|
// readPasswordStdin reads a line from stdin.
|
||||||
// Exits on read error or empty result.
|
// It exits with a fatal error on read error or empty result.
|
||||||
func readPasswordStdin() string {
|
func readPasswordStdin() string {
|
||||||
tlog.Info.Println("Reading password from stdin")
|
tlog.Info.Println("Reading password from stdin")
|
||||||
p := readLineUnbuffered(os.Stdin)
|
p := readLineUnbuffered(os.Stdin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user