Skip to main content

Module loader

Module loader 

Source
Expand description

YAML loading with shell-style environment variable interpolation, applied to the raw file text before deserialization so every config value — including nested plugin config — supports ${ENV_VAR:-default}.

Functions§

interpolate_env
Replaces ${VAR} and ${VAR:-default} patterns with environment variable values.
interpolate_env_json
Recursively interpolates ${ENV_VAR:-default} patterns in every string leaf of a JSON value — object values, array elements, and nested combinations — leaving numbers, booleans, and null untouched.
load_yaml_with_env
Loads a YAML file, interpolates environment variables, and deserializes into T.