aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/cmd.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-16 02:34:25 +0800
committerobscuren <geffobscura@gmail.com>2014-07-16 02:34:25 +0800
commit28948d061cfc14d7a5da307a12ebd504b78d2dbb (patch)
tree168772cef16e9fb7eea6727d4ae254097d277ce1 /ethereum/cmd.go
parent288f1c5387c1a0a8863499389e8a7ca7e3068208 (diff)
downloadgo-tangerine-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.gz
go-tangerine-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.zst
go-tangerine-28948d061cfc14d7a5da307a12ebd504b78d2dbb.zip
Moved the repl to a new package
Diffstat (limited to 'ethereum/cmd.go')
-rw-r--r--ethereum/cmd.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethereum/cmd.go b/ethereum/cmd.go
index 08147824d..ff2b8409c 100644
--- a/ethereum/cmd.go
+++ b/ethereum/cmd.go
@@ -2,13 +2,14 @@ package main
import (
"github.com/ethereum/eth-go"
+ "github.com/ethereum/go-ethereum/ethereum/repl"
"github.com/ethereum/go-ethereum/utils"
"io/ioutil"
"os"
)
func InitJsConsole(ethereum *eth.Ethereum) {
- repl := NewJSRepl(ethereum)
+ repl := ethrepl.NewJSRepl(ethereum)
go repl.Start()
utils.RegisterInterrupt(func(os.Signal) {
repl.Stop()
@@ -24,7 +25,7 @@ func ExecJsFile(ethereum *eth.Ethereum, InputFile string) {
if err != nil {
logger.Fatalln(err)
}
- re := NewJSRE(ethereum)
+ re := ethrepl.NewJSRE(ethereum)
utils.RegisterInterrupt(func(os.Signal) {
re.Stop()
})