From aba5be920974585d7c29bdb6987639ff3ce92595 Mon Sep 17 00:00:00 2001 From: Sergey Rublev Date: Sat, 19 May 2018 00:17:58 +0300 Subject: [PATCH] Add configurable repl options (#333) --- scalalib/src/mill/scalalib/ScalaModule.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scalalib/src/mill/scalalib/ScalaModule.scala b/scalalib/src/mill/scalalib/ScalaModule.scala index 921cc3bdd76..68f60df118a 100644 --- a/scalalib/src/mill/scalalib/ScalaModule.scala +++ b/scalalib/src/mill/scalalib/ScalaModule.scala @@ -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()