install_hooks

Function install_hooks 

Source
pub async fn install_hooks(
    lockfile: &LockFile,
    project_root: &Path,
    cache: &Cache,
) -> Result<()>
Expand description

Configure hooks from source files into .claude/settings.local.json

This function:

  1. Reads hook JSON files directly from source locations (no file copying)
  2. Converts them to Claude Code format
  3. Updates .claude/settings.local.json with proper event-based structure
  4. Can be called from both add and install commands