AndreasAugustin / go-gitmoji-cli

:octocat: A conventional gitmoji commit interactive command line tool for using emojis on conventional commits. :rocket:
https://gitmoji.dev/
MIT License
8 stars 0 forks source link

[Feat]: do not show gitmoji or type prompt if proper gitmoji or type is provided within `-m` message :sparkles: #64

Closed AndreasAugustin closed 1 year ago

AndreasAugustin commented 1 year ago

Describe the feature

Currently the gitmoji and type list prompts are provided all the time. users are able to provide the information with -m flag. proposed solution is to not show the prompts when the needed information is already provided within the -m flag if valid.

Use Case

sometimes people already provide the information with the -m flag, e.g. (with hook) git commit -m "feat: :smile: (#56) my nice description". currently the gitmoji and commit prompts are shown which is not necessary.

Proposed Solution

if valid information is provided, use the information (already parsed and available within code) if it is valid.

Acknowledgements