Skip to main content

load_for_path

Function load_for_path 

Source
pub fn load_for_path(start: &Path) -> Result<HarnConfig, ConfigError>
Expand description

Walks up from start to find the nearest harn.toml. Returns Ok(HarnConfig::default()) if none is found. Returns Err on parse failure so callers can surface the problem rather than silently ignore malformed config.