Skip to content

Commit

Permalink
Add configurable repl options (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
narma authored and lihaoyi committed May 18, 2018
1 parent 14d002e commit aba5be9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scalalib/src/mill/scalalib/ScalaModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ trait ScalaModule extends JavaModule { outer =>
})()
}

def repl() = T.command{
def repl(replOptions: String*) = T.command{
if (T.ctx().log.inStream == DummyInputStream){
Result.Failure("repl needs to be run with the -i/--interactive flag")
}else{
Jvm.interactiveSubprocess(
mainClass = "ammonite.Main",
classPath = ammoniteReplClasspath().map(_.path),
mainArgs = Nil,
mainArgs = replOptions,
workingDir = pwd
)
Result.Success()
Expand Down

0 comments on commit aba5be9

Please sign in to comment.