Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

bash-bastion/hookah

Repository files navigation

Warning No longer in development. I use lefthook now.

hookah

An elegantly minimal solution for Git hooks

Why?

I don't wish to use husky, overcommit, and pre-commit for various reasons. None had exactly what I was looking for, so I built a simple solution

Features

  • No configuration
  • Language agnostic (ex. not tied to npm's postinstall)
  • Elegantly minimal

Subcommands

  • refresh
    • Installs Hookah to the local repo (a message will be printed if anything has been updated)
  • check
    • Ensures all hook scripts will work before running Git
  • new
    • Shows a menu of all possible hooks. Selecting one creates a minimal template in the correct location

Installation

Use Basalt, a Bash package manager, to install this project globally

basalt global add hyperupcall/hookah