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

  1. First all build steps that are required for the given command are collected from the given vector of build steps.
  2. 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.
  3. 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 executed
  • build_steps - The list of build steps to consider. Only the steps required by the command are executed
  • vars - Variables for the template engine and for the execution environment variables

Returns

  • true if all existing build steps for cmd executed successfully
  • false otherwise