Skip to main content

discover_config_path

Function discover_config_path 

Source
pub fn discover_config_path(dir: &Path) -> Option<PathBuf>
Expand description

Probe dir for faucet.yaml, faucet.yml, then faucet.json. Returns the first match in priority order, or None. When more than one candidate is present, emits a tracing::warn! naming the runner-ups so a stale faucet.yml next to the canonical faucet.yaml doesn’t go unnoticed.