Skip to main content

build_env

Function build_env 

Source
pub fn build_env(event: HookEvent, ctx: &HookContext) -> Vec<(String, String)>
Expand description

Build the (key, value) env vars handed to the hook child: ENTRACTE_EVENT, ENTRACTE_KIND, ENTRACTE_DURATION_SECS, ENTRACTE_OUTCOME. Missing fields are empty strings so consumers can shell-test them uniformly.