Util

mill.internal.Util
object Util

Attributes

Source
Util.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Util.type

Members list

Value members

Concrete methods

def backtickWrap(s: String): String

Attributes

Source
Util.scala
def envForInterpolation(workDir: Path): Map[String, String]

Creates a map of standard environment variables for interpolation in Mill config files. This includes PWD, PWD_URI, WORKSPACE, MILL_VERSION, and MILL_BIN_PLATFORM.

Creates a map of standard environment variables for interpolation in Mill config files. This includes PWD, PWD_URI, WORKSPACE, MILL_VERSION, and MILL_BIN_PLATFORM.

Attributes

Source
Util.scala
def formatError(f: Failure, highlight: String => String): String

Attributes

Source
Util.scala
def formatError0(path: Path, index: Int, message: String, exception: Seq[ExceptionInfo], tickerPrefix: String, highlight: String => String): String

Format an error message in dotty style with file location, code snippet, and pointer.

Format an error message in dotty style with file location, code snippet, and pointer.

Value parameters

fileName

The file name or path to display

index

The character index where the error occurred

message

The error message to display

text

The full text content of the file

Attributes

Returns

A formatted error string with location, code snippet, pointer, and message

Source
Util.scala
def formatException(exception: Seq[ExceptionInfo], highlight: String => String): String

Attributes

Source
Util.scala

Attributes

Source
Util.scala
def getLineNumber(text: String, index: Int): String

Attributes

Source
Util.scala
def parseBuildHeaderValue[T : Reader](headerData: String, configKey: String, default: T): T

Parses a config value from the YAML header data. Returns the parsed value or a default on missing key. Throws on parse failure.

Parses a config value from the YAML header data. Returns the parsed value or a default on missing key. Throws on parse failure.

Attributes

Source
Util.scala
def parseHeaderData(scriptFile: Path): Result[HeaderData]

Attributes

Source
Util.scala
def parseYaml0[T](fileName: String, headerData: String, visitor0: Visitor[_, T]): Result[T]

Attributes

Source
Util.scala
def readBooleanFromBuildHeader(projectRoot: Path, configKey: String, rootBuildFileNames: Seq[String]): Boolean

Reads a boolean flag from the root build.mill YAML header.

Reads a boolean flag from the root build.mill YAML header.

Attributes

Source
Util.scala
def splitPreserveEOL(bytes: Array[Byte]): Seq[Array[Byte]]

Attributes

Source
Util.scala

Concrete fields

val alphaKeywords: Set[String]

Attributes

Source
Util.scala