https://github.com/kermage/aagh
A cross-platform executable for handling Git hooks
https://github.com/kermage/aagh
agnostic-implementation cross-platform githooks
Last synced: 4 months ago
JSON representation
A cross-platform executable for handling Git hooks
- Host: GitHub
- URL: https://github.com/kermage/aagh
- Owner: kermage
- License: mit
- Created: 2024-07-09T10:33:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-03-16T18:00:01.000Z (4 months ago)
- Last Synced: 2026-03-17T05:02:25.905Z (4 months ago)
- Topics: agnostic-implementation, cross-platform, githooks
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aagh --   
> To the betterment of a project: no more **"team, please lint and test"** and **"it works on my machine"**. _Hopefully_.
```
A cross-platform executable for handling Git hooks
Usage:
aagh [command]
Available Commands:
check Check the repository status in the current directory
init Initialize the repository in the current directory
run Run a hook in the repository of current directory
setup Setup a hook in the repository of current directory
help Help about any command
completion Generate the autocompletion script for the specified shell
Flags:
-h, --help help for aagh
-v, --version version for aagh
Use "aagh [command] --help" for more information about a command.
```
## Installation
### Prepared Binaries
Download the latest release [here](https://github.com/kermage/aagh/releases).
### One-liner Commands
```sh
curl -fsSL https://raw.githubusercontent.com/kermage/aagh/main/install.sh | sh
```
```sh
wget -qO- https://raw.githubusercontent.com/kermage/aagh/main/install.sh | sh
```
*Default install path: `/usr/local/bin`*
#### Custom Bin Directory
```sh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/kermage/aagh/main/install.sh)" -- -b
```
```sh
sh -c "$(wget -qO- https://raw.githubusercontent.com/kermage/aagh/main/install.sh)" -- -b
```
*\* Make sure `` exists and is writeable. Directory creation is intentionally not implemented.*
### Project Examples
- [GO](./examples/go)
- [JS](./examples/js)
- [PHP](./examples/php)
#### Oneshot command
Simplify project hooks setup
```sh
aagh init --apply
```