process_exec()
def process_exec(command, args, env, working_directory, stdin)Executes a command when the script is evaluated.
The command executes during evaluation. It is not recommended to run functions when adding rules because evalation is skipped if none of the starlark files have changed.
Example:
process_exec(
"ls",
args = ["-alt"],
working_directory = ".",
env = {
"PATH": "/usr/bin:/bin"
}
)Args
command-strThe command to executeargs-[str]The arguments to pass to the commandenv-dictThe environment variables to setworking_directory-strThe working directory to execute the command instdin-strThe standard input to pass to the command
Returns
dict: with members status, stdout, and stderr