Function hisho_core::build_tool::run_steps_for_command
source · pub fn run_steps_for_command(
cmd: &Command,
build_steps: &BuildSteps,
vars: &TemplateVariables
) -> bool
Expand description
Ensure that all build steps have been run successfully
- First all build steps that are required for the given command are collected from the given vector of build steps.
- Then all of the found build steps are executed in sequence with the command outputs being printed to the standard output and standard error, as if the commands where executed manually.
- Only if all the build steps executed with exist status 0, true is returned, otherwise false.
Arguments
cmd
- The Command for which the build steps should be executedbuild_steps
- The list of build steps to consider. Only the steps required by the command are executedvars
- Variables for the template engine and for the execution environment variables
Returns
true
if all existing build steps for cmd executed successfullyfalse
otherwise