API Reference GitHoox v#0.1.0

Copy Markdown View Source

Modules

Git hooks in pure Elixir. Configurable file globs, per-hook options, built-in support for mix format, Credo, ExUnit, and Dialyzer.

Load and validate .git_hoox.exs.

Structured errors returned by GitHoox.Config.load/1.

Shell out to git for file-state queries.

Behaviour for git_hoox hooks.

Runs mix credo against staged Elixir files.

Runs mix dialyzer --quiet.

Runs mix format against staged Elixir files.

Escape hatch for arbitrary shell commands.

Manage .git/hooks/* shim files.

Execute hooks for a given stage.

Mix Tasks

Install git_hoox shims.

Execute git_hoox for a given stage.

Remove only the shims git_hoox installed (identified by marker comment). Restores the most recent .backup.* for each removed shim if present.