# `mix git_hoox.run`
[🔗](https://github.com/sgerrand/git_hoox/blob/v0.5.0/lib/mix/tasks/git_hoox.run.ex#L1)

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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
