mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-05-07 17:18:21 +00:00
Prompts should be on STDERR https://pubs.opengroup.org/onlinepubs/9699919799.2016edition/utilities/V3_chap02.html#tag_18_05_03 (under PS1)
This commit is contained in:
parent
b1a82e06d6
commit
43cc96a43d
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ func ReadPassword(prompt string) (string, error) {
|
|||
fd := int(os.Stdin.Fd())
|
||||
var pass string
|
||||
if term.IsTerminal(fd) {
|
||||
fmt.Print(prompt)
|
||||
fmt.Fprint(os.Stderr, prompt);
|
||||
|
||||
inputPass, err := term.ReadPassword(fd)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue