Function hisho_core::build_tool::run_steps
source · pub fn run_steps(
steps: &Vec<String>,
build_steps: &BuildSteps,
vars: &TemplateVariables
) -> bool
Expand description
Ensure that all build steps have been run successfully
- First all build steps that are required
- 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
steps
- The list of build steps by name that should be executedbuild_steps
- The list of build steps to consider.vars
- Variables for the template engine and for the execution environment variables
Returns
true
if all existing build steps for cmd executed successfullyfalse
otherwise