A gitmoji interactive client for using gitmojis on commit messages.
This project provides an easy solution for using gitmoji from your command line. Gitmoji-cli solves the hassle of searching through the gitmoji list. Includes a bunch of options you can play with! :tada: And it is a shameless copy of the original but written in Rust.
$ cargo install gitmoji
$ gitmoji --help
A gitmoji interactive client for using gitmojis on commit messages.
USAGE:
gitmoji [FLAGS] [OPTIONS]
FLAGS:
-c, --commit Interactively commit using the prompts
-g, --config Setup gitmoji-cli preferences
-h, --help Prints help information
-i, --init Initiliaze gitmoji as a commit hook
-l, --list List all the available gitmojis
-r, --remove Remove a previously initialized commit hook
-u, --update Sync emoji list with the repo
-V, --version Prints version information
OPTIONS:
-s, --search <query> Search gitmojis
You can use the commit functionality in two ways, directly or via a commit-hook.
Start the interactive commit client, to auto generate your commit based on your prompts.
$ gitmoji -c
Run the init option, add your changes and commit them, after that the prompts will begin and your commit message will be built.
$ gitmoji -i
$ git add .
$ git commit
⚠️ The hook should not be used with the gitmoji -c
command.
Search using specific keywords to find the right gitmoji.
$ gitmoji -s bug
Pretty print all the available gitmojis.
$ gitmoji -l
Update the gitmojis list, by default the first time you run gitmoji, the cli creates a cache to allow using this tool without internet connection.
$ gitmoji -u
Run gitmoji -g
to setup some gitmoji-cli preferences, such as the auto git add .
feature.