[][src]Function codebase::hook::install

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

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