envoy
Functions
pub fn get(name: String) -> Result(String, Nil)
Get an environment variable by name.
get("HOME")
// -> Ok("/home/lucy")
get("WORLD_PEACE")
// -> Error(Nil)
pub fn set(name: String, value: String) -> Nil
Set an environment variable.
get("FAVOURITE_COLOUR")
// -> Error(Nil)
set("FAVOURITE_COLOUR", "Pink")
get("FAVOURITE_COLOUR")
// -> Ok("Pink")