Module schematic::env

source ·
Expand description

Built-in parse_env functions.

Functions§

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