Function codeowners::locate [] [src]

pub fn locate<P>(ctx: P) -> Option<PathBuf> where
    P: AsRef<Path>, 

Attempts to locate CODEOWNERS file based on common locations relative to a given git repo

Examples

match codeowners::locate(".") {
  Some(ownersfile)  => {
    println!(
     "{:#?}",
     codeowners::from_path(ownersfile)
   )
 },
  _ => println!("failed to find CODEOWNERS file")
}