MainRunner

ammonite.MainRunner
See theMainRunner companion object
class MainRunner(cliConfig: Config, outprintStream: PrintStream, errPrintStream: PrintStream, stdIn: InputStream, stdOut: OutputStream, stdErr: OutputStream, wd: Path)

Bundles together:

  • All the code relying on cliConfig
  • Handling for the common input/output streams and print-streams
  • Logic around the watch-and-rerun flag

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def handleWatchRes[T](res: Res[T], printing: Boolean): Boolean
def initMain(isRepl: Boolean): Main
def printError(s: String): Unit
def printInfo(s: String): Unit
def runCode(code: String): Boolean
def runRepl(): Unit
def runScript(scriptPath: Path, scriptArgs: List[String]): Boolean
def watchAndWait(watched: Seq[(Watchable, Long)]): Unit
final def watchLoop[T](isRepl: Boolean, printing: Boolean, run: Main => (Res[T], Seq[(Watchable, Long)])): Boolean

Concrete fields

val colors: Colors