install — Install Pre-commit Hook

$ sniffercommit install

Installs the following:

The hook is validated with bash -n before installation to prevent broken hooks.

Uninstall

$ rm .git/hooks/pre-commit
$ rm -rf .github/workflows/sniffercommit.yml
$ rm -f .gitlab-ci.yml

Or re-run sniffercommit install to regenerate both files from config.