Hoox is git hooks manager
For initialization you shuld run init command in project root
hoox init
Optional arguments:
--directory
or --d
- directory to store hook scripts. Default is .hoox
in project root.You can use separate directory to store typical hooks for specific programming language.
In case of already initialized repository you will be prompted to rewrite hoox directory.
To show current hoox status, hoox directory and enabled hooks, you can run following command
hoox info
Command will show info:
Hoox dir: ./hoox
Enabled hooks:
pre-commit
pre-push
Hoox support folowing hooks in current version:
You can run hook for test purpose via
hoox run-hook <hook-name> [hook-arguments ...]
By default all hooks are disabled. To enable hook run
hoox enable <hook-name>
Enable hooks realized via adding .sh script that runs hoox run-hook <hook-name> [hook-arguments]
.
To disable hook run
hoox disable <hook-name>
Disable hooks realized via deleting .sh script from previous paragraph. Do not edit those scripts, cause you can lost all changes when hook is disabled.