diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-05-30 22:30:17 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-06-06 21:21:46 +0800 |
commit | 5904d58a967ba2bd11f700f654f828c00049a1f7 (patch) | |
tree | d0900e1e2905834cf95f1e52066948b54671f7d9 /cmd | |
parent | 7c90a2e42e153f650122af73f05d651b04e9d553 (diff) | |
download | go-tangerine-5904d58a967ba2bd11f700f654f828c00049a1f7.tar go-tangerine-5904d58a967ba2bd11f700f654f828c00049a1f7.tar.gz go-tangerine-5904d58a967ba2bd11f700f654f828c00049a1f7.tar.bz2 go-tangerine-5904d58a967ba2bd11f700f654f828c00049a1f7.tar.lz go-tangerine-5904d58a967ba2bd11f700f654f828c00049a1f7.tar.xz go-tangerine-5904d58a967ba2bd11f700f654f828c00049a1f7.tar.zst go-tangerine-5904d58a967ba2bd11f700f654f828c00049a1f7.zip |
[release/1.4.6] cmd/geth, console: fix reviewer issues
(cherry picked from commit da729e5b386ca0fd32344dcc1fd63d14c0bb39ab)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/accountcmd.go | 4 | ||||
-rw-r--r-- | cmd/geth/chaincmd.go | 2 | ||||
-rw-r--r-- | cmd/geth/main.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go index a9cee20ee..0f9d95c2c 100644 --- a/cmd/geth/accountcmd.go +++ b/cmd/geth/accountcmd.go @@ -216,12 +216,12 @@ func getPassPhrase(prompt string, confirmation bool, i int, passwords []string) if prompt != "" { fmt.Println(prompt) } - password, err := console.TerminalPrompter.PromptPassword("Passphrase: ") + password, err := console.Stdin.PromptPassword("Passphrase: ") if err != nil { utils.Fatalf("Failed to read passphrase: %v", err) } if confirmation { - confirm, err := console.TerminalPrompter.PromptPassword("Repeat passphrase: ") + confirm, err := console.Stdin.PromptPassword("Repeat passphrase: ") if err != nil { utils.Fatalf("Failed to read passphrase confirmation: %v", err) } diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index 457dbcfff..4f47de5d7 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -117,7 +117,7 @@ func exportChain(ctx *cli.Context) { } func removeDB(ctx *cli.Context) { - confirm, err := console.TerminalPrompter.PromptConfirm("Remove local database?") + confirm, err := console.Stdin.PromptConfirm("Remove local database?") if err != nil { utils.Fatalf("%v", err) } diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 3654788ce..cf7d6944e 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -236,7 +236,7 @@ participating. app.After = func(ctx *cli.Context) error { logger.Flush() debug.Exit() - console.TerminalPrompter.Close() // Resets terminal mode. + console.Stdin.Close() // Resets terminal mode. return nil } } |