View Source Mahaul.Env (Mahaul v0.5.0)

Module for dealing with environment variable values.

Link to this section Summary

Functions

Returns a list of normalized environment variable values.

Returns the parsed environment variable value.

Returns the normalized environment variable value for a given environment variable name and configuration option.

Link to this section Functions

Link to this function

get_all_normalized_values(opts)

View Source

Returns a list of normalized environment variable values.

Returns the parsed environment variable value.

The type parsing is done as per the provided configuration options. If the default configuration option is provided and the environment variable is not set, the default value is parsed and returned. An error tuple is returned in all other cases.

Link to this function

get_normalized_value(arg)

View Source

Returns the normalized environment variable value for a given environment variable name and configuration option.