Closed welcoMattic closed 7 years ago
By default If you use gitmoji
it will run the questions and auto create the commit with the answer options.
The option --init
it's for automatically creating the git hook template that you need to create manually when using a git hook. This option enables you to commit with git commit
without using the gitmoji
command. And "install" the hook into the repository.
Some other options that are available:
--search
: Search for gitmojis.--list
: List all the gitmojis.The purpose of gitmoji-cli
is to act as a client for using gitmojis in commit messages, searching and listing them 👍
Oh alright, you want further than me and my gitmoji-commit-hook package ^^' I'll keep mine because I like KISS principle, but you did really good job! 👍
Yes of course you can keep yours no problem 😄 it's always great to have different approaches. Thanks for your time @welcoMattic
IMHO gitmoji-cli got for aim to make gitmojis data available for programatic purpose (like a git hook).
In this case, the option
--init
is not a the right place, I think it should be in gitmoji-commit-hook.What do you think @carloscuesta?