Module env

Source
Expand description

Built-in parse_env functions.

Functions§

ignore_empty
Ignore the environment variable if it’s empty and fallback to the previous or default value.
parse_bool
Parse a string into a boolean. Will parse 1, true, yes, on, and enabled as true, and everything else as false.
split_colon
Split a variable on each colon (:) and parse into a list of values.
split_comma
Split a variable on each comma (,) and parse into a list of values.
split_semicolon
Split a variable on each semicolon (;) and parse into a list of values.
split_space
Split a variable on each space ( ) and parse into a list of values.