diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-11 22:24:35 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-11 22:24:35 +0800 |
commit | c59d7a899b0ca121b3f982fa12405629109f1b47 (patch) | |
tree | 1859ac54e0f9948927287caeae863b730eb1fbd9 /ethereum/repl/repl.go | |
parent | ce8f24e57a3ba31d17c34db284bd3d9efa15e7d8 (diff) | |
download | dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.tar dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.gz dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.bz2 dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.lz dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.xz dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.zst dexon-c59d7a899b0ca121b3f982fa12405629109f1b47.zip |
Added open js option for repetitive tasks in ethereal
Diffstat (limited to 'ethereum/repl/repl.go')
-rw-r--r-- | ethereum/repl/repl.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ethereum/repl/repl.go b/ethereum/repl/repl.go index 92d4ad86a..d08feb7b4 100644 --- a/ethereum/repl/repl.go +++ b/ethereum/repl/repl.go @@ -3,12 +3,14 @@ package ethrepl import ( "bufio" "fmt" - "github.com/ethereum/eth-go" - "github.com/ethereum/eth-go/ethlog" - "github.com/ethereum/eth-go/ethutil" "io" "os" "path" + + "github.com/ethereum/eth-go" + "github.com/ethereum/eth-go/ethlog" + "github.com/ethereum/eth-go/ethutil" + "github.com/ethereum/go-ethereum/javascript" ) var logger = ethlog.NewLogger("REPL") @@ -19,7 +21,7 @@ type Repl interface { } type JSRepl struct { - re *JSRE + re *javascript.JSRE prompt string @@ -34,7 +36,7 @@ func NewJSRepl(ethereum *eth.Ethereum) *JSRepl { panic(err) } - return &JSRepl{re: NewJSRE(ethereum), prompt: "> ", history: hist} + return &JSRepl{re: javascript.NewJSRE(ethereum), prompt: "> ", history: hist} } func (self *JSRepl) Start() { |