pub fn discover_root(start: &Path) -> Option<PathBuf>Expand description
Walk upward from start to the nearest directory containing .ct,
git-style. Returns that project root, or None when no .ct exists up
to the filesystem root.
ยงExamples
use coding_tools::rules::discover_root;
// No `.ct` above the filesystem root:
assert_eq!(discover_root(std::path::Path::new("/")), None);