Evaluator

mill.api.Evaluator
See theEvaluator companion object
trait Evaluator extends AutoCloseable, EvaluatorApi

An API that allows you to resolve, plan, and execute Mill tasks.

Evaluator can be taken as a parameter to Task.Commands marked as exclusive = true, providing those commands with the ability to inspect the build and dynamically decide what to evaluate. Many builtin commands like show, plan, path, etc. are implemented in this way

Attributes

Companion
object
Source
Evaluator.scala
Graph
Supertypes
trait EvaluatorApi
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def evaluate(scriptArgs: Seq[String], selectMode: SelectMode, reporter: Int => Option[CompileProblemReporter], selectiveExecution: Boolean): Result[Result[Any]]

Attributes

Source
Evaluator.scala
def execute[T](tasks: Seq[Task[T]], reporter: Int => Option[CompileProblemReporter], testReporter: TestReporter, logger: Logger, serialCommandExec: Boolean, selectiveExecution: Boolean): Result[T]

Attributes

Source
Evaluator.scala
def groupAroundImportantTasks[T](topoSortedTasks: TopoSorted)(important: PartialFunction[Task[_], T]): MultiBiMap[T, Task[_]]

Attributes

Source
Evaluator.scala
def plan(tasks: Seq[Task[_]]): Plan

Attributes

Source
Evaluator.scala
def resolveModulesOrTasks(scriptArgs: Seq[String], selectMode: SelectMode, allowPositionalCommandArgs: Boolean, resolveToModuleTasks: Boolean): Result[List[Either[Module, Named[_]]]]

Attributes

Source
Evaluator.scala
def resolveSegments(scriptArgs: Seq[String], selectMode: SelectMode, allowPositionalCommandArgs: Boolean, resolveToModuleTasks: Boolean): Result[List[Segments]]

Attributes

Source
Evaluator.scala
def resolveTasks(scriptArgs: Seq[String], selectMode: SelectMode, allowPositionalCommandArgs: Boolean, resolveToModuleTasks: Boolean): Result[List[Named[_]]]

Attributes

Source
Evaluator.scala
def selective: SelectiveExecution

APIs related to selective execution

APIs related to selective execution

Attributes

Source
Evaluator.scala
def topoSorted(transitiveTasks: IndexedSeq[Task[_]]): TopoSorted

Takes the given tasks, finds all the tasks they transitively depend on, and sort them topologically. Fails if there are dependency cycles

Takes the given tasks, finds all the tasks they transitively depend on, and sort them topologically. Fails if there are dependency cycles

Attributes

Source
Evaluator.scala
def transitiveTasks(sourceTasks: Seq[Task[_]]): IndexedSeq[Task[_]]

Collects all transitive dependencies (tasks) of the given tasks, including the given tasks.

Collects all transitive dependencies (tasks) of the given tasks, including the given tasks.

Attributes

Source
Evaluator.scala
def withBaseLogger(newBaseLogger: Logger): Evaluator

Attributes

Source
Evaluator.scala

Inherited and Abstract methods

def close(): Unit

Attributes

Inherited from:
AutoCloseable