diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-04 19:18:26 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-04 19:18:26 +0800 |
commit | 15f491e5007d1507f20d0edce36cc9c0bd5cbd37 (patch) | |
tree | db8fcf0b0066ff66d91f6e89d7c89951c440b395 /cmd/ethereum/main.go | |
parent | 5817dab89e404847764eb74b35539c01747743f3 (diff) | |
download | go-tangerine-15f491e5007d1507f20d0edce36cc9c0bd5cbd37.tar go-tangerine-15f491e5007d1507f20d0edce36cc9c0bd5cbd37.tar.gz go-tangerine-15f491e5007d1507f20d0edce36cc9c0bd5cbd37.tar.bz2 go-tangerine-15f491e5007d1507f20d0edce36cc9c0bd5cbd37.tar.lz go-tangerine-15f491e5007d1507f20d0edce36cc9c0bd5cbd37.tar.xz go-tangerine-15f491e5007d1507f20d0edce36cc9c0bd5cbd37.tar.zst go-tangerine-15f491e5007d1507f20d0edce36cc9c0bd5cbd37.zip |
Clean up REPL
Diffstat (limited to 'cmd/ethereum/main.go')
-rw-r--r-- | cmd/ethereum/main.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go index ff306b10f..b9e69f700 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -26,6 +26,7 @@ import ( "runtime" "time" + "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" @@ -137,7 +138,12 @@ func main() { } if StartJsConsole { - InitJsConsole(ethereum) + repl := ethrepl.NewJSRepl(ethereum) + repl.Start() + utils.RegisterInterrupt(func(os.Signal) { + repl.Stop() + }) + } else if len(InputFile) > 0 { ExecJsFile(ethereum, InputFile) } |