# 🌵 Cactus
[](https://hex.pm/packages/cactus)
[](https://hexdocs.pm/cactus/)
[](https://github.com/bwireman/cactus/blob/main/LICENSE)
[](https://gleam.run/news/v0.16-gleam-compiles-to-javascript/)
[](https://gleam.run)
A tool for managing git lifecycle hooks with ✨ gleam! Pre commit, Pre push and more!
# 🔽 Install
```sh
gleam add --dev cactus
```
#### 🌸 Javascript
Bun, Deno & Nodejs are _all_ supported!
# ▶️ Usage
**_FIRST_** configure hooks and then run
```sh
# initialize configured hooks
gleam run -m cactus
```
### ⚙️ Config
Settings that can be added to your project's `gleam.toml`
```toml
# hook name (all git hooks are supported)
[cactus.pre-commit]
# list of actions for the hook
actions = [
# command: name of the command or binary to be run: required
# kind: is it a gleam subcommand, a binary or a module: ["sub_command", "binary", "module"], default: module
# args: additional args to be passed to the command, default: []
{ command = "format", kind = "sub_command", args = ["--check"] },
{ command = "./scripts/test.sh", kind = "binary" },
]
```