Expand description
Resolve a .env file path and auto-discover a pipeline config file.
Both helpers take an explicit “from” directory so unit tests can run in a
tempdir without touching process cwd. Production call-sites pass
std::env::current_dir()? as the third argument.
Functions§
- discover_
config_ path - Probe
dirforfaucet.yaml,faucet.yml, thenfaucet.json. Returns the first match in priority order, orNone. When more than one candidate is present, emits atracing::warn!naming the runner-ups so a stalefaucet.ymlnext to the canonicalfaucet.yamldoesn’t go unnoticed. - load_
env_ file_ if_ present - Load the resolved
.envviadotenvy::from_path. No-op whenpathisNone. Process-env values always win over.env-supplied ones — that’s the dotenvy default and we deliberately don’t override it. - resolve_
env_ file - Resolve the
.envfile to load (if any). Precedence: