An action created on a ctx object. You can retrieve these using the Actions provider. Some fields are only applicable for certain kinds of actions. Fields that are inapplicable are set to None.


sequence Action.argv

For actions created by ctx.action(), an immutable list of the arguments for the command line to be executed. Note that when using the shell (i.e., when executable is not set), the first two arguments will be the shell path and "-c". May return None.


string Action.content

For actions created by ctx.file_action() or ctx.template_action(), the contents of the file to be written. May return None.


depset Action.inputs

A set of the input files of this action.


depset Action.outputs

A set of the output files of this action.


dict Action.substitutions

For actions created by ctx.template_action(), an immutable dict holding the substitution mapping. May return None.