Command

A command to be execute to produce a targets outputs from its inputs. In general this will be a shell command, but the high-level rules use commands with known semantics (compilation, linking, etc)

Constructors

this
this(string shellCommand)

If constructed with a string, it's a shell command

this
this(CommandType type, Params params)

Explicitly request a command of this type with these parameters In general to create one of the builtin high level rules

this
this(CommandDelegate dg)

A D function call command

this
this(CommandFunction func)

A D function call command

Members

Aliases

Params
alias Params = AssocList!(string, string[])
Undocumented in source.

Functions

defaultCommand
string defaultCommand(Options options, Language language, string[] outputs, string[] inputs, Flag!"dependencies" deps)
Undocumented in source. Be warned that the author may not have intended to support it.
execute
const(string)[] execute(Options options, Language language, string[] outputs, string[] inputs)
Undocumented in source. Be warned that the author may not have intended to support it.
expandVariables
Command expandVariables()
Undocumented in source. Be warned that the author may not have intended to support it.
getParams
string[] getParams(string projectPath, string key, string[] ifNotFound)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
CommandType getType()
Undocumented in source. Be warned that the author may not have intended to support it.
isDefaultCommand
bool isDefaultCommand()
Undocumented in source. Be warned that the author may not have intended to support it.
paramNames
const(string)[] paramNames()
Undocumented in source. Be warned that the author may not have intended to support it.
rawCmdString
string rawCmdString(string projectPath)
Undocumented in source. Be warned that the author may not have intended to support it.
shellCommand
string shellCommand(Options options, Language language, string[] outputs, string[] inputs, Flag!"dependencies" deps)

returns a command string to be run by the shell

toBytes
ubyte[] toBytes()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

builtinTemplate
string builtinTemplate(CommandType type, Language language, Options options, Flag!"dependencies" deps)
Undocumented in source. Be warned that the author may not have intended to support it.
fromBytes
Command fromBytes(ubyte[] bytes)
Undocumented in source. Be warned that the author may not have intended to support it.
phony
Command phony(string shellCommand)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta