Function foundry_config::utils::find_project_root_path
source · pub fn find_project_root_path(path: Option<&PathBuf>) -> Result<PathBuf>Expand description
Returns the root path to set for the project root
traverse the dir tree up and look for a foundry.toml file starting at the given path or cwd,
but only until the root dir of the current repo so that
-- foundry.toml
-- repo
|__ .git
|__sub
|__ [given_path | cwd]
will still detect repo as root