MainModule

mill.main.MainModule
See theMainModule companion object
@Scaladoc(value = "/**\n * [[mill.define.Module]] containing all the default tasks that Mill provides: [[resolve]],\n * [[show]], [[inspect]], [[plan]], etc.\n */")
trait MainModule extends BaseModule

mill.define.Module containing all the default tasks that Mill provides: resolve, show, inspect, plan, etc.

Attributes

Companion
object
Source
MainModule.scala
Graph
Supertypes
class BaseModule
trait Module
trait Wrapper
class BaseClass
trait Cacher
trait Cacher
class Object
trait Matchable
class Any
Show all
Known subtypes
class RootModule

Members list

Type members

Classlikes

object interp

Attributes

Source
MainModule.scala
Supertypes
class Object
trait Matchable
class Any
Self type
interp.type

Inherited classlikes

@Scaladoc(value = "/**\n * Miscellaneous machinery around traversing & querying the build hierarchy,\n * that should not be needed by normal users of Mill\n */")
object moduleInternal extends Internal

Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

Miscellaneous machinery around traversing & querying the build hierarchy, that should not be needed by normal users of Mill

Attributes

Inherited from:
Module
Source
Module.scala
Supertypes
class Internal
class Object
trait Matchable
class Any

Value members

Concrete methods

@Scaladoc(value = "/**\n * Deletes the given targets from the out directory. Providing no targets\n * will clean everything.\n */")
def clean(evaluator: Evaluator, targets: String*): Command[Seq[PathRef]]

Deletes the given targets from the out directory. Providing no targets will clean everything.

Deletes the given targets from the out directory. Providing no targets will clean everything.

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * The `init` allows you to quickly generate a starter project.\n *\n * If you run it without arguments, it displays the list of available examples.\n *\n * If you pass one of listed examples, it downloads specified example from mill releases page and extracts it to working directory.\n *\n * If you pass a g8 template, it will generate a project based on a Giter8 template.\n * It prompts you to enter project name and creates a folder with that name.\n * There are lots of templates out there for many frameworks and tools!\n */")
def init(evaluator: Evaluator, args: String*): Command[Unit]

The init allows you to quickly generate a starter project.

The init allows you to quickly generate a starter project.

If you run it without arguments, it displays the list of available examples.

If you pass one of listed examples, it downloads specified example from mill releases page and extracts it to working directory.

If you pass a g8 template, it will generate a project based on a Giter8 template. It prompts you to enter project name and creates a folder with that name. There are lots of templates out there for many frameworks and tools!

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Displays metadata about the given task without actually running it.\n */")
def inspect(evaluator: Evaluator, tasks: String*): Command[String]

Displays metadata about the given task without actually running it.

Displays metadata about the given task without actually running it.

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Prints out some dependency path from the `src` task to the `dest` task.\n *\n * If there are multiple dependency paths between `src` and `dest`, the path\n * chosen is arbitrary.\n */")
def path(evaluator: Evaluator, src: String, dest: String): Command[List[String]]

Prints out some dependency path from the src task to the dest task.

Prints out some dependency path from the src task to the dest task.

If there are multiple dependency paths between src and dest, the path chosen is arbitrary.

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Given a set of tasks, prints out the execution plan of what tasks will be\n * executed in what order, without actually executing them.\n */")
def plan(evaluator: Evaluator, targets: String*): Command[Array[String]]

Given a set of tasks, prints out the execution plan of what tasks will be executed in what order, without actually executing them.

Given a set of tasks, prints out the execution plan of what tasks will be executed in what order, without actually executing them.

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Resolves a mill query string and prints out the tasks it resolves to.\n */")
def resolve(evaluator: Evaluator, targets: String*): Command[List[String]]

Resolves a mill query string and prints out the tasks it resolves to.

Resolves a mill query string and prints out the tasks it resolves to.

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Runs a given task and prints the JSON result to stdout. This is useful\n * to integrate Mill into external scripts and tooling.\n */")
def show(evaluator: Evaluator, targets: String*): Command[Value]

Runs a given task and prints the JSON result to stdout. This is useful to integrate Mill into external scripts and tooling.

Runs a given task and prints the JSON result to stdout. This is useful to integrate Mill into external scripts and tooling.

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Runs a given task and prints the results as JSON dictionary to stdout. This is useful\n * to integrate Mill into external scripts and tooling.\n */")
def showNamed(evaluator: Evaluator, targets: String*): Command[Value]

Runs a given task and prints the results as JSON dictionary to stdout. This is useful to integrate Mill into external scripts and tooling.

Runs a given task and prints the results as JSON dictionary to stdout. This is useful to integrate Mill into external scripts and tooling.

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Shuts down mill\'s background server\n */")
def shutdown(): Command[Unit]

Shuts down mill's background server

Shuts down mill's background server

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Show the mill version.\n */")
def version(): Command[String]

Show the mill version.

Show the mill version.

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Renders the dependencies between the given tasks as a SVG for you to look at\n */")
def visualize(evaluator: Evaluator, targets: String*): Command[Seq[PathRef]]

Renders the dependencies between the given tasks as a SVG for you to look at

Renders the dependencies between the given tasks as a SVG for you to look at

Attributes

Source
MainModule.scala
@Scaladoc(value = "/**\n * Renders the dependencies between the given tasks, and all their dependencies, as a SVG\n */")
def visualizePlan(evaluator: Evaluator, targets: String*): Command[Seq[PathRef]]

Renders the dependencies between the given tasks, and all their dependencies, as a SVG

Renders the dependencies between the given tasks, and all their dependencies, as a SVG

Attributes

Source
MainModule.scala

Inherited methods

def moduleCtx: Ctx

Attributes

Inherited from:
BaseModule
Source
BaseModule.scala
def moduleDir: Path

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala

Attributes

Inherited from:
Module
Source
Module.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Module -> Any
Inherited from:
Module
Source
Module.scala

Concrete fields

@Scaladoc(value = "/**\n * Commands related to selective execution, where Mill runs tasks selectively\n * depending on what task inputs or implementations changed\n */")

Commands related to selective execution, where Mill runs tasks selectively depending on what task inputs or implementations changed

Commands related to selective execution, where Mill runs tasks selectively depending on what task inputs or implementations changed

Attributes

Source
MainModule.scala

Implicits

Inherited implicits

implicit def moduleNestedCtx: Nested

Attributes

Inherited from:
Module
Source
Module.scala