find_project_root

Function find_project_root 

Source
pub fn find_project_root(start_path: &Path) -> Result<PathBuf>
Expand description

Gets the project root directory from a path.

Searches upward from the given path to find a directory containing agpm.toml

§Arguments

  • start_path - The path to start searching from

§Returns

The project root directory if found