Skip to main content

discover

Function discover 

Source
pub fn discover(start: &Path) -> Option<PathBuf>
Expand description

Find the nearest sql-dialect-fmt.toml at or above start, returning its path (not its contents).

start may be a file or a directory; if it is a file we begin the walk at its parent. Returns None when no config exists anywhere up to the filesystem root. Never panics on odd paths.