Skip to content

Commit

Permalink
chore(infra): add project dir path fn
Browse files Browse the repository at this point in the history
commit-id:6207c777
  • Loading branch information
Itay-Tsabary-Starkware committed Nov 24, 2024
1 parent 2463080 commit 65da1de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/infra_utils/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ pub fn resolve_project_relative_path(relative_path: &str) -> Result<PathBuf, Pat
Ok(absolute_path)
}

Ok(path)
/// Returns the absolute path of the project root directory.
///
/// # Returns
/// * A `PathBuf` representing the path of the project root.
pub fn project_path() -> Result<PathBuf, PathResolutionError> {
resolve_project_relative_path(".")
}

fn path_of_project_root() -> PathBuf {
Expand Down

0 comments on commit 65da1de

Please sign in to comment.