We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 506c927 commit a2e1e5cCopy full SHA for a2e1e5c
cmd/utils/cmd.go
@@ -91,6 +91,7 @@ func PromptPassword(prompt string, warnTerm bool) (string, error) {
91
}
92
fmt.Print(prompt)
93
input, err := bufio.NewReader(os.Stdin).ReadString('\n')
94
+ input = strings.TrimRight(input, "\r\n")
95
fmt.Println()
96
return input, err
97
0 commit comments