Skip to main content

load_file

Function load_file 

Source
pub fn load_file(
    path: &Path,
    directives: &mut Vec<ConfigDirective>,
) -> Result<(), RippyError>
Expand description

Parse a single config file and append directives to the list.

§Errors

Returns RippyError::Config if the file cannot be read or contains invalid syntax.