Skip to main content

load

Function load 

Source
pub fn load(path: impl AsRef<Path>) -> Result<LoopConfig, CoreError>
Expand description

Load a config from Markdown, YAML, or JSON.

Markdown is chosen by extension, because a .md config is a different grammar rather than a different serialization — guessing at it would mean reporting a YAML parse error for a document that was never YAML. Everything else falls through to parse_str, which tries YAML then JSON.