This commit is contained in:
Ramesh Nair 2016-03-20 13:53:26 +00:00
commit c701aaa869

View file

@ -91,6 +91,7 @@ func PromptPassword(prompt string, warnTerm bool) (string, error) {
}
fmt.Print(prompt)
input, err := bufio.NewReader(os.Stdin).ReadString('\n')
input = strings.TrimRight(input, "\n")
fmt.Println()
return input, err
}