mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-29 19:25:56 +00:00
Make sure prompt looks good in interactive mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user