Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bash-bastion/hookah

An elegantly minimal solution for Git hooks
https://github.com/bash-bastion/hookah

basalt bash git git-hooks githooks hooks shell

Last synced: about 2 months ago
JSON representation

An elegantly minimal solution for Git hooks

Awesome Lists containing this project

README

        

> **Warning**
> **No longer in development. I use [lefthook](https://github.com/evilmartians/lefthook) now.**

# hookah

An elegantly minimal solution for Git hooks

## Why?

I don't wish to use [husky](https://github.com/typicode/husky), [overcommit](https://github.com/sds/overcommit), and [pre-commit](https://github.com/pre-commit/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](https://github.com/hyperupcall/basalt), a Bash package manager, to install this project globally

```sh
basalt global add hyperupcall/hookah
```