diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-10 04:15:47 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-10 04:15:47 -0800 |
commit | b0e32c659e334b334e3f1e1a835328b32f20e759 (patch) | |
tree | 13ede60ba347041786776c7d0c2f14364c76b912 /scalaplugin | |
parent | 550772d7515757339269c28c41fd0d8109e0fa2c (diff) | |
download | mill-b0e32c659e334b334e3f1e1a835328b32f20e759.tar.gz mill-b0e32c659e334b334e3f1e1a835328b32f20e759.tar.bz2 mill-b0e32c659e334b334e3f1e1a835328b32f20e759.zip |
Kill `Router.main` annotation and make routing dependent on the `Command` return type
Diffstat (limited to 'scalaplugin')
-rw-r--r-- | scalaplugin/src/main/scala/forge/scalaplugin/Subproject.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scalaplugin/src/main/scala/forge/scalaplugin/Subproject.scala b/scalaplugin/src/main/scala/forge/scalaplugin/Subproject.scala index 09f51b69..0ec22614 100644 --- a/scalaplugin/src/main/scala/forge/scalaplugin/Subproject.scala +++ b/scalaplugin/src/main/scala/forge/scalaplugin/Subproject.scala @@ -183,12 +183,11 @@ abstract class Subproject extends Cacher{ def classpath = T{ Seq(resources(), compiled()) } def jar = T{ modules.Jvm.jarUp(resources, compiled) } - @forge.discover.Router.main def run(mainClass: String) = T.cmd{ import ammonite.ops._, ImplicitWd._ %('java, "-cp", (runDepClasspath().map(_.path) :+ compiled()).mkString(":"), mainClass) } - @forge.discover.Router.main + def console() = T.cmd{ import ammonite.ops._, ImplicitWd._ %('java, |