pub fn read_categories(cfg: &Config) -> Result<CategoryLookup, String> {
    match fs::read_categories(cfg) {
        Ok(lookup) => Ok(lookup),
        Err(error) => Err(format!("{:?}", error)),
    }
}
/// Read all categories and return a populated lookup structure
Read all categories and return a populated lookup structure
Read all categories and return a populated lookup structure
pub fn read_categories(cfg: &Config) -> Result<CategoryLookup, String> {
    match fs::read_categories(cfg) {
        Ok(lookup) => Ok(lookup),
        Err(error) => Err(format!("{:?}", error)),
    }
}
pub fn read_categories ( cfg : & Config ) -> Result < CategoryLookup , String > { match fs :: read_categories ( cfg ) { Ok ( lookup ) => Ok ( lookup ) , Err ( error ) => Err ( format ! ( " " error ) ) , } }
Read all categories and return a populated lookup structure
Read all categories and return a populated lookup structure
cfg
&Config