Skip to main content

install_hook

Function install_hook 

Source
pub fn install_hook(project_dir: &Path) -> Result<InstallResult>
Expand description

Install the EnvVault pre-commit hook into the project’s .git/hooks/.

If a pre-commit hook already exists, it is left untouched and a warning is returned instead of overwriting.