A Kotlin CLI tool for commiting with fashion ๐
Based on gitmoji and gitmoji-cli by carloscuesta
$> java -jar gitmoji-cli.jar -h
Gitmojis CLI: A tool for writing commits with fashion
Available commands:
-l, --list List all gitmojis
-c, --commit Make a new commit with the wizard
-k, --hook Pre commit hook
-s, --search (names) Search gitmojis by name
-h, --help Show this text
If you want to launch this tool with every commit you can configure a hook
- Go to your project root folder
- Paste the
gitmoji-cli.jar
cd ./git/hooks
touch prepare-commit-msg
chmod +x prepare-commit-msg
- Paste the following inside
prepare-commit-msg
#!/bin/sh
exec < /dev/tty
java -jar gitmoji-cli.jar --hook $1
For generating a jar file you must follow this steps:
- Clone this project
./gradlew shadowJar
- Navigate to
/build/libs/
- A file called
gitmoji-cli-*-all.jar
should be there - Copy that file into your project root and rename it to
gitmoji-cli.jar