diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-16 02:34:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-16 02:34:25 +0800 |
commit | 28948d061cfc14d7a5da307a12ebd504b78d2dbb (patch) | |
tree | 168772cef16e9fb7eea6727d4ae254097d277ce1 /ethereum/cmd.go | |
parent | 288f1c5387c1a0a8863499389e8a7ca7e3068208 (diff) | |
download | dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.gz dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.tar.zst dexon-28948d061cfc14d7a5da307a12ebd504b78d2dbb.zip |
Moved the repl to a new package
Diffstat (limited to 'ethereum/cmd.go')
-rw-r--r-- | ethereum/cmd.go | 5 |
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() }) |