Skip to content

Commit

Permalink
Add configurable repl options
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Rublev committed May 18, 2018
1 parent a88c97d commit bb6d8b0
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 bb6d8b0

Please sign in to comment.