Skip to main content

run_prepare_command

Function run_prepare_command 

Source
pub fn run_prepare_command(
    service: &str,
    repo: &str,
    reference: &str,
    command: &str,
    env: &[(String, String)],
) -> Result<(), PrepareFailure>
Expand description

Shallow-clone repo@reference into a temp dir, run command there with env, and clean up. Any failure is returned as a PrepareFailure.