fiction/providers/env
Values
pub fn exact(
vars vars: List(String),
) -> fn() -> Result(List(#(String, fiction.Value)), String)
Try to get values for the exact names given, using the lowercased name as the key if the var is present
(eg. FOO will be stored in foo)
pub fn prefixed(
prefix prefix: String,
) -> fn() -> Result(List(#(String, fiction.Value)), String)
Collect all environment variables with the given prefix, using the unprefixed and lowercased name as the key for the value
(eg. APP_FOO will be stored in foo)