Skip to main content

exec_with_secrets

Function exec_with_secrets 

Source
pub fn exec_with_secrets(
    secrets: &HashMap<String, String>,
    cmd_parts: &[String],
) -> SafeResult<i32>
Expand description

Spawn cmd_parts[0] with cmd_parts[1..] as arguments, injecting secrets into its environment (on top of the inherited parent env). Returns exit code.