aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum/main.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-06 10:38:19 +0800
committerFelix Lange <fjl@twurst.com>2015-03-06 10:57:13 +0800
commit38f6d60e6e699db24b7a850b5999823b9e36d5bb (patch)
treee29709adf03982aeb8e5d61c40b1e37399a2fd4e /cmd/ethereum/main.go
parentbae7e93a9c5af679682f89b0f475e98c1eee9e58 (diff)
downloadgo-tangerine-38f6d60e6e699db24b7a850b5999823b9e36d5bb.tar
go-tangerine-38f6d60e6e699db24b7a850b5999823b9e36d5bb.tar.gz
go-tangerine-38f6d60e6e699db24b7a850b5999823b9e36d5bb.tar.bz2
go-tangerine-38f6d60e6e699db24b7a850b5999823b9e36d5bb.tar.lz
go-tangerine-38f6d60e6e699db24b7a850b5999823b9e36d5bb.tar.xz
go-tangerine-38f6d60e6e699db24b7a850b5999823b9e36d5bb.tar.zst
go-tangerine-38f6d60e6e699db24b7a850b5999823b9e36d5bb.zip
cmd/ethereum: new JS repl with cross-platform line editing
Diffstat (limited to 'cmd/ethereum/main.go')
-rw-r--r--cmd/ethereum/main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index a38e012c2..c85caf229 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -28,7 +28,6 @@ import (
"time"
"github.com/codegangsta/cli"
- "github.com/ethereum/go-ethereum/cmd/ethereum/repl"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth"
@@ -145,9 +144,9 @@ func runjs(ctx *cli.Context) {
eth := utils.GetEthereum(ClientIdentifier, Version, ctx)
startEth(ctx, eth)
if len(ctx.Args()) == 0 {
- repl := ethrepl.NewJSRepl(eth)
- repl.Start()
+ repl := newREPL(eth)
utils.RegisterInterrupt(func(os.Signal) { repl.Stop() })
+ repl.Start()
eth.WaitForShutdown()
} else if len(ctx.Args()) == 1 {
execJsFile(eth, ctx.Args()[0])