amber/env

Values

pub fn delete(key: String) -> Result(Nil, error.Error)

Deletes an environment variable. Mutates the process environment.

pub fn get(key: String) -> Result(String, error.Error)

Returns the value of the environment variable, or Error(NotFound) if it is not set.

pub fn has(key: String) -> Result(Bool, error.Error)
pub fn set(
  key: String,
  to value: String,
) -> Result(Nil, error.Error)

Sets the value of an environment variable. Mutates the process environment.

pub fn to_dict() -> Result(dict.Dict(String, String), error.Error)
Search Document