Skip to main content

detect_project_root

Function detect_project_root 

Source
pub fn detect_project_root() -> Result<PathBuf>
Expand description

Detect project root by walking up the directory tree.

Resolution order:

  1. .gobby/project.json or .gobby/gcode.json (identity file)
  2. VCS root (.git or .hg)
  3. Current working directory