diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-28 07:31:48 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-28 07:31:48 -0800 |
commit | 40104303cdc1e8bf05010b29a4213cd1369fb175 (patch) | |
tree | 3b4ce4e72e07b31edb9c966e16656da70130fbfe /core/src | |
parent | 1e6baf44761267a0588561a59402f012a2d51e16 (diff) | |
download | mill-40104303cdc1e8bf05010b29a4213cd1369fb175.tar.gz mill-40104303cdc1e8bf05010b29a4213cd1369fb175.tar.bz2 mill-40104303cdc1e8bf05010b29a4213cd1369fb175.zip |
fix repl flag
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/mill/Main.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/src/main/scala/mill/Main.scala b/core/src/main/scala/mill/Main.scala index 288221f3..97499db6 100644 --- a/core/src/main/scala/mill/Main.scala +++ b/core/src/main/scala/mill/Main.scala @@ -33,8 +33,11 @@ object Main { val config = if(!repl) cliConfig else cliConfig.copy( - predefCode = "implicit val replApplyHandler = mill.main.ReplApplyHandler(mapping)", - predefFile = Some(pwd/"build.sc"), + predefCode = + """import $file.build, build._ + |implicit val replApplyHandler = mill.main.ReplApplyHandler(build.mapping) + | + """.stripMargin, welcomeBanner = None ) |