c

mill.main

MainRunner

class MainRunner extends ammonite.MainRunner

Customized version of ammonite.MainRunner, allowing us to run Mill build.sc scripts with mill-specific tweaks such as a custom scriptCodeWrapper or with a persistent evaluator between runs.

Annotations
@Scaladoc()
Linear Supertypes
ammonite.MainRunner, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MainRunner
  2. MainRunner
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MainRunner(config: Config, mainInteractive: Boolean, disableTicker: Boolean, outprintStream: PrintStream, errPrintStream: PrintStream, stdIn: InputStream, stateCache0: Option[EvaluatorState] = None, env: Map[String, String], setIdle: (Boolean) => Unit, debugLog: Boolean, keepGoing: Boolean, systemProperties: Map[String, String], threadCount: Option[Int], ringBell: Boolean, wd: Path, initialSystemProperties: Map[String, String])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. val colored: Boolean
  7. val colors: Colors
    Definition Classes
    MainRunner → MainRunner
  8. val config: Config
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def handleWatchRes[T](res: Res[T], printing: Boolean): Boolean
    Definition Classes
    MainRunner → MainRunner
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def initMain(isRepl: Boolean): Main
    Definition Classes
    MainRunner → MainRunner
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def printError(s: String): Unit
    Definition Classes
    MainRunner
  21. def printInfo(s: String): Unit
    Definition Classes
    MainRunner
  22. def runCode(code: String): Boolean
    Definition Classes
    MainRunner
  23. def runRepl(): Unit
    Definition Classes
    MainRunner
  24. def runScript(scriptPath: Path, scriptArgs: List[String]): Boolean
    Definition Classes
    MainRunner → MainRunner
  25. var stateCache: Option[EvaluatorState]
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. def watchAndWait(watched: Seq[(Watchable, Long)]): Unit
    Definition Classes
    MainRunner → MainRunner
  32. final def watchLoop[T](isRepl: Boolean, printing: Boolean, run: (Main) => (Res[T], Seq[(Watchable, Long)])): Boolean
    Definition Classes
    MainRunner
    Annotations
    @tailrec()
  33. final def watchLoop2[T](isRepl: Boolean, printing: Boolean, run: (Main) => (Res[T], () => Seq[(Watchable, Long)])): Boolean

    Custom version of watchLoop that lets us generate the watched-file signature only on demand, so if we don't have config.watch enabled we do not pay the cost of generating it

    Custom version of watchLoop that lets us generate the watched-file signature only on demand, so if we don't have config.watch enabled we do not pay the cost of generating it

    Annotations
    @Scaladoc() @tailrec()
  34. object CustomCodeWrapper extends CodeWrapper

Inherited from ammonite.MainRunner

Inherited from AnyRef

Inherited from Any

Ungrouped