mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-02 22:21:44 +00:00
Make sure prompt looks good in interactive mode
This commit is contained in:
@ -39,7 +39,7 @@ func runRecoverCmd(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
// not really a password... huh?
|
||||
seed, err := getSeed("Enter your recovery seed phrase")
|
||||
seed, err := getSeed("Enter your recovery seed phrase:")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -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