aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/chaincmd.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-05-31 16:48:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-31 16:48:08 +0800
commit7b662103a026ee96667c8cad96dc952b7896a8af (patch)
tree19a9e7fce54c7cba0fe9c81a272d3c500f116bad /cmd/geth/chaincmd.go
parent5c39a1bb26813d05244a5408b20fb0b38c10c8b2 (diff)
parentda729e5b386ca0fd32344dcc1fd63d14c0bb39ab (diff)
downloadgo-tangerine-7b662103a026ee96667c8cad96dc952b7896a8af.tar
go-tangerine-7b662103a026ee96667c8cad96dc952b7896a8af.tar.gz
go-tangerine-7b662103a026ee96667c8cad96dc952b7896a8af.tar.bz2
go-tangerine-7b662103a026ee96667c8cad96dc952b7896a8af.tar.lz
go-tangerine-7b662103a026ee96667c8cad96dc952b7896a8af.tar.xz
go-tangerine-7b662103a026ee96667c8cad96dc952b7896a8af.tar.zst
go-tangerine-7b662103a026ee96667c8cad96dc952b7896a8af.zip
Merge pull request #2535 from karalabe/modularize-console
cmd, console: split off the console into a reusable package
Diffstat (limited to 'cmd/geth/chaincmd.go')
-rw-r--r--cmd/geth/chaincmd.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go
index 32eacc99e..4f47de5d7 100644
--- a/cmd/geth/chaincmd.go
+++ b/cmd/geth/chaincmd.go
@@ -26,6 +26,7 @@ import (
"github.com/codegangsta/cli"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/console"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
@@ -116,7 +117,7 @@ func exportChain(ctx *cli.Context) {
}
func removeDB(ctx *cli.Context) {
- confirm, err := utils.Stdin.ConfirmPrompt("Remove local database?")
+ confirm, err := console.Stdin.PromptConfirm("Remove local database?")
if err != nil {
utils.Fatalf("%v", err)
}