Make sure prompt looks good in interactive mode

This commit is contained in:
Ethan Frey
2017-06-20 20:46:00 +02:00
parent 1ab9ab9494
commit a944bdebfc
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -77,6 +77,9 @@ func getPassword(prompt string) (pass string, err error) {
}
func getSeed(prompt string) (seed string, err error) {
if inputIsTty() {
fmt.Println(prompt)
}
seed, err = stdinPassword()
seed = strings.TrimSpace(seed)
return