Task

A representation of a task.

Constructors

this
this(TaskKey key)
Undocumented in source.
this
this(immutable(Command)[] commands, string workDir, string display, SysTime lastExecuted)
Undocumented in source.

Alias This

key

Members

Functions

opCmp
int opCmp(typeof(this) that)
opEquals
bool opEquals(typeof(this) that)

Compares this task with another.

toPrettyString
string toPrettyString(bool verbose)

Returns a string representation of the task.

Properties

toPrettyShortString
string toPrettyShortString [@property getter]

Returns a short string representation of the task.

Structs

Result
struct Result

The result of executing a task.

Variables

display
string display;

Text to display when running the task. If this is null, the commands themselves will be displayed. This is useful for reducing the amount of noise that is displayed.

key
TaskKey key;
Undocumented in source.
lastExecuted
SysTime lastExecuted;

Time this task was last executed. If this is SysTime.min, then it is taken to mean that the task has never been executed before. This is useful for knowing if a task with no dependencies needs to be executed.

Meta