Members
args
declare_file
File object to the action’s construction function.
Parameters
ParameterDescriptionfilenamestring;
required
The relative path of the file within the directory.
directoryFile;
required
The directory in which the file should be created.
run
Parameters
ParameterDescriptionoutputssequence of File s;
required
List of the output files of the action.
inputssequence of File s; or depset;
default is []
List or depset of the input files of the action.
executableFile; or string; or FilesToRunProvider;
required
The executable file to be called by the action.
toolssequence; or depset; or None;
default is None
List or depset of any tools needed by the action. Tools are executable inputs that may have their own runfiles which are automatically made available to the action.
When a list is provided, it can be a heterogenous collection of:
FilesFilesToRunProviderinstancesdepsets ofFiles
File s from ctx.executable and FilesToRunProvider s which are directly in the list will have their runfiles automatically added. All tools are implicitly added as inputs.
argumentssequence;
default is []
Command line arguments of the action. Must be a list of strings or actions.args() objects.
progress_messagestring; or None;
default is None
Progress message to show to the user during the build.