Function install

Source
pub fn install<A: AsRef<Path>, B: AsRef<Path>>(
    hook_id: &str,
    repo_path: A,
    config_dir: B,
) -> Result<()>
Expand description

Install given hook into given repository Please note that at the moment, only pre-commit hook are allowed

ยงArguments

  • hook_id - the Hook ID
  • repo_path - the Git repository path
  • config_dir - path to the .codebase-config directory