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.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MainRunner
- MainRunner
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new MainRunner(config: Config, disableTicker: Boolean, outprintStream: PrintStream, errPrintStream: PrintStream, stdIn: InputStream, stateCache0: Option[State] = None, env: Map[String, String], setIdle: (Boolean) ⇒ Unit, debugLog: Boolean)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
val
colors: Colors
- Definition Classes
- MainRunner
- val config: Config
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handleWatchRes[T](res: Res[T], printing: Boolean): Boolean
- Definition Classes
- MainRunner → MainRunner
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initMain(isRepl: Boolean): Main
- Definition Classes
- MainRunner → MainRunner
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
printError(s: String): Unit
- Definition Classes
- MainRunner
-
def
printInfo(s: String): Unit
- Definition Classes
- MainRunner
-
def
runCode(code: String): Boolean
- Definition Classes
- MainRunner
-
def
runRepl(): Unit
- Definition Classes
- MainRunner
-
def
runScript(scriptPath: Path, scriptArgs: List[String]): Boolean
- Definition Classes
- MainRunner → MainRunner
- var stateCache: Option[State]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
watchAndWait(watched: Seq[(Path, Long)]): Unit
- Definition Classes
- MainRunner → MainRunner
-
final
def
watchLoop[T](isRepl: Boolean, printing: Boolean, run: (Main) ⇒ (Res[T], Seq[(Path, Long)])): Boolean
- Definition Classes
- MainRunner
- Annotations
- @tailrec()
-
final
def
watchLoop2[T](isRepl: Boolean, printing: Boolean, run: (Main) ⇒ (Res[T], () ⇒ Seq[(Path, 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
- @tailrec()
- object CustomCodeWrapper extends CodeWrapper