Skip to main content

EnvLookup

Type Alias EnvLookup 

Source
pub type EnvLookup = Box<dyn Fn(&str) -> Option<String> + Send + Sync>;
Expand description

Reads an environment variable. Injected so a test can hand the wizard a fixed environment instead of the developer’s real one.

Aliased Type§

pub struct EnvLookup(/* private fields */);