Skip to main content

project_root

Function project_root 

Source
pub fn project_root(cwd: Option<&str>) -> PathBuf
Expand description

Resolve the project root from (in priority order):

  1. CLAUDE_PROJECT_DIR env var
  2. cwd field in the hook payload
  3. The process working directory