Workspace

mill.define.TaskCtx.Workspace
@Scaladoc(value = "/** Access to the project root (aka workspace) directory. */")
trait Workspace

Access to the project root (aka workspace) directory.

Attributes

Source
TaskCtx.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait TaskCtx

Members list

Value members

Abstract methods

@Scaladoc(value = "/**\n * This is the `os.Path` pointing to the project root directory.\n *\n * This is the preferred access to the project directory, and should\n * always be preferred over `os.pwd`* (which might also point to the\n * project directory in classic cli scenarios, but might not in other\n * use cases like BSP or LSP server usage).\n */")
def workspace: Path

This is the os.Path pointing to the project root directory.

This is the os.Path pointing to the project root directory.

This is the preferred access to the project directory, and should always be preferred over os.pwd* (which might also point to the project directory in classic cli scenarios, but might not in other use cases like BSP or LSP server usage).

Attributes

Source
TaskCtx.scala