This object is visible for the purpose of testing, and may be obtained from an Actions
provider. It is normally not necessary to access Action
objects or their fields within a rule's implementation function. You may instead want to see the Rules page for a general discussion of how to use actions when defining custom rules, or the API reference for creating actions.
Some fields of this object are only applicable for certain kinds of actions. Fields that are inapplicable are set to None
.
Members
args
sequence Action.args
Note that some types of actions do not yet support exposure of this field. For such action types, this is None
.
May return None
.
argv
sequence Action.argv
"-c"
.
May return None
.
content
string Action.content
None
if the contents cannot be determined until the execution phase, such as when a directory in an Args object needs to be expanded.
May return None
.
env
dict Action.env
inputs
depset Action.inputs
mnemonic
string Action.mnemonic
outputs
depset Action.outputs
substitutions
dict Action.substitutions
None
.