diff options
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/MainModule.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/main/MainModule.scala b/main/src/main/MainModule.scala index dbe92cc2..40014169 100644 --- a/main/src/main/MainModule.scala +++ b/main/src/main/MainModule.scala @@ -247,6 +247,14 @@ trait MainModule extends mill.Module{ } } + /** + * Shuts down mill's background server + */ + def shutdown() = mill.T.command { + T.ctx().log.info("Shutting down Mill server...") + System.exit(0) + } + private type VizWorker = (LinkedBlockingQueue[(scala.Seq[_], scala.Seq[_], os.Path)], LinkedBlockingQueue[Result[scala.Seq[PathRef]]]) |