mix git_hoox.run (GitHoox v0.5.0)

Copy Markdown View Source

Execute git_hoox for a given stage.

mix git_hoox.run pre-commit

Invoked by .git/hooks/<stage> shims. Not usually run directly. Stage names use kebab-case to match git's hook filenames; they are converted to atoms internally.

Output

Attaches GitHoox.Reporter to print coloured hook status to the terminal. Turn it off with config :git_hoox, reporter: false. Colour follows GIT_HOOX_COLOR (always/never), NO_COLOR, and CLICOLOR_FORCE/FORCE_COLOR, and otherwise turns on only on a TTY.