Skip to main content

capture_source_environment

Function capture_source_environment 

Source
pub async fn capture_source_environment(
    hook: Hook,
    prior_env: &HashMap<String, String>,
    timeout_seconds: u64,
) -> Result<HashMap<String, String>>
Expand description

Execute a single source hook and return the resulting environment.

This bypasses hook approval and state persistence, making it suitable for runtime-backed environment materialization where the manifest itself is the source of truth.