Function project_base_directory::get_project_root
source ยท pub fn get_project_root() -> Result<Option<PathBuf>>
Expand description
An absolute path that points to the project root directory. If the environment variable $PRJ_ROOT is set its value will be used. Otherwise, a best effort is made to find the project root using the following techniques:
- Searching upwards for a git repository