[ https://issues.apache.org/jira/browse/TINKERPOP-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15244650#comment-15244650 ]
stephen mallette commented on TINKERPOP-1157: --------------------------------------------- You can currently do: {code} $ bin/gremlin.sh init.groovy \,,,/ (o o) -----oOOo-(3)-oOOo----- plugin activated: tinkerpop.server plugin activated: tinkerpop.utilities plugin activated: tinkerpop.tinkergraph ==>2 ==>5 Bad line in Gremlin initialization file at [z = x + y] - No such property: y for class: groovysh_evaluate {code} where init.groovy contains: {code} x = 1+1 x + 3 z = x + y z - 2 {code} but obviously that exits the console which is not what you want. I could see where we have room for improvement here as compared with groovysh and the link you provided. I'll look into this further. Thanks. > gremlin.sh should allow you to execute a script and go interactive on error > or completion > ----------------------------------------------------------------------------------------- > > Key: TINKERPOP-1157 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1157 > Project: TinkerPop > Issue Type: Improvement > Components: console > Affects Versions: 3.1.1-incubating > Reporter: Ariel Weisberg > > This may be specific to my workflow, but generally when I am > learning/experimenting with a REPL I have one window open with my script and > another console open that I use to run it. I like to restart the REPL every > time to avoid lingering state. > I would like to be able to drop back to interactive executing a script once > it completes and my data is loaded and any queries I may have run are > complete and I can inspect the results. > On error I want to drop to interactive so I can inspect the current state at > the time the error occurred. -- This message was sent by Atlassian JIRA (v6.3.4#6332)