// NOTE: get the root path of current git repository
get the root path of current git repository
get the root path of current git repository
pub fn git_root_path() -> Result<String, Error> {
    let output = Command::new("git")
        .arg("rev-parse")
        .arg("--show-toplevel")
        .output()?;
    let output_str: String = String::from_utf8(output.stdout)?;
    Ok(output_str.trim().to_string())
}
pub fn git_root_path ( ) -> Result < String , Error > { let output = Command :: new ( " " ) . arg ( " " ) . arg ( " " ) . output ( ) ? ; let output_str : String = String :: from_utf8 ( output . stdout ) ? ; Ok ( output_str . trim ( ) . to_string ( ) ) }
NOTE: get the root path of current git repository
NOTE : get the root path of current git repository