Skip to main content

Module resolve

Module resolve 

Source
Expand description

Helper for resolving env vars

Re-exportsยง

use regex::Regex; ๐Ÿ”’
use std::env; ๐Ÿ”’
use std::env; ๐Ÿ”’
use std::env::VarError; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::sync::LazyLock; ๐Ÿ”’

Structsยง

UnresolvedEnvVarError
Error when we failed to resolve an env var

Staticsยง

RE_PLACEHOLDER
A regex that matches ${val} placeholders

Functionsยง

interpolate
Replaces all Env var placeholders in the input string with the values they hold