fn install_hook( root: &Path, config: HookConfig, kind: &str, rebuild: bool, quiet: bool, ) -> Result<()>