Var

class Var(val baseName: String, val cmdLang: CmdLang)

Represents a variable in a command.

Constructors

Link copied to clipboard
constructor(baseName: String, cmdLang: CmdLang)

Types

Link copied to clipboard
inner class Result<T>(val v: CmdUtils.Var, val fileNameConvention: CmdUtils.Var.() -> String, val envVarNameConvention: CmdUtils.Var.() -> String, val transform: CmdUtils.Var.(List<String>) -> T = { it as T })

Represents different kinds of results a variable can emit.

Properties

Link copied to clipboard

stores the base name of this Var, for making derived properties for its results.

Link copied to clipboard

the command language that this variable will be used in.

Link copied to clipboard
Link copied to clipboard

Command for exiting with the exitcode of this command, if exported to a Var

Link copied to clipboard
Link copied to clipboard