Skip to main content

parse_config

Function parse_config 

Source
pub fn parse_config(source: &str) -> Result<CliGitConfig, ConfigError>
Expand description

What: Parse and validate one complete configuration document. Why: This is the only way settings enter the native wrapper: data in, typed settings or one actionable error out. Nothing in the document is executed, imported or resolved as a path.

In TS you’d write (pseudocode):

function parseConfig(source: string): CliGitConfig;