Skip to main content

get_from_file

Function get_from_file 

Source
pub fn get_from_file(
    cwd: &Path,
    file: &Path,
    key: &str,
) -> Result<Option<String>, Error>
Expand description

Read a single config value from a specific file (e.g. .lfsconfig). Returns Ok(None) if the file doesn’t exist or the key isn’t set.