Evaluator

mill.eval.Evaluator
See theEvaluator companion object
@Scaladoc(value = "/**\n * [[Evaluator]] is the primary API through which a user interacts with the Mill\n * evaluation process. The various phases of evaluation as methods they can call:\n *\n * 1. [[resolveSegments]]/[[resolveTasks]]\n * 2. [[plan]]\n * 3. [[execute]]/[[execute]],\n *\n * As well as [[evaluate]] which does all of these phases one after another\n */")
final class Evaluator extends AutoCloseable

Evaluator is the primary API through which a user interacts with the Mill evaluation process. The various phases of evaluation as methods they can call:

  1. resolveSegments/resolveTasks
  2. plan
  3. execute/execute,

As well as evaluate which does all of these phases one after another

Attributes

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

Members list

Value members

Concrete methods

def close(): Unit

Attributes

Source
Evaluator.scala
@Scaladoc(value = "/**\n * Evaluates the given query selector, performing [[resolveTasks]] and [[execute]]\n * internally, and returning the [[Evaluator.Result]] containing the output\n */")
def evaluate(scriptArgs: Seq[String], selectMode: SelectMode, selectiveExecution: Boolean): Result[Result[Any]]

Evaluates the given query selector, performing resolveTasks and execute internally, and returning the Evaluator.Result containing the output

Evaluates the given query selector, performing resolveTasks and execute internally, and returning the Evaluator.Result containing the output

Attributes

Source
Evaluator.scala
@Scaladoc(value = "/**\n * @param targets\n * @param selectiveExecution\n * @return\n */")
def execute[T](targets: Seq[Task[T]], reporter: Int => Option[CompileProblemReporter], testReporter: TestReporter, logger: ColorLogger, serialCommandExec: Boolean, selectiveExecution: Boolean): Result[T]

Attributes

Source
Evaluator.scala
@Scaladoc(value = "/**\n * Takes a sequence of [[Task]]s and returns a [[Plan]] containing the\n * transitive upstream tasks necessary to evaluate those provided.\n */")
def plan(tasks: Seq[Task[_]]): Plan

Takes a sequence of Tasks and returns a Plan containing the transitive upstream tasks necessary to evaluate those provided.

Takes a sequence of Tasks and returns a Plan containing the transitive upstream tasks necessary to evaluate those provided.

Attributes

Source
Evaluator.scala
@Scaladoc(value = "/**\n * Takes query selector tokens and resolves them to a list of [[Segments]]\n * representing concrete tasks or modules that match that selector\n */")
def resolveSegments(scriptArgs: Seq[String], selectMode: SelectMode, allowPositionalCommandArgs: Boolean, resolveToModuleTasks: Boolean): Result[List[Segments]]

Takes query selector tokens and resolves them to a list of Segments representing concrete tasks or modules that match that selector

Takes query selector tokens and resolves them to a list of Segments representing concrete tasks or modules that match that selector

Attributes

Source
Evaluator.scala
@Scaladoc(value = "/**\n * Takes query selector tokens and resolves them to a list of [[NamedTask]]s\n * representing concrete tasks or modules that match that selector\n */")
def resolveTasks(scriptArgs: Seq[String], selectMode: SelectMode, allowPositionalCommandArgs: Boolean, resolveToModuleTasks: Boolean): Result[List[NamedTask[_]]]

Takes query selector tokens and resolves them to a list of NamedTasks representing concrete tasks or modules that match that selector

Takes query selector tokens and resolves them to a list of NamedTasks representing concrete tasks or modules that match that selector

Attributes

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

Attributes

Source
Evaluator.scala