Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: add -m and -S flags to commit command #21

Closed
1 task done
AndreasAugustin opened this issue Aug 17, 2023 · 0 comments · Fixed by #24
Closed
1 task done

[Feat]: add -m and -S flags to commit command #21

AndreasAugustin opened this issue Aug 17, 2023 · 0 comments · Fixed by #24
Assignees
Labels
enhancement New feature or request

Comments

@AndreasAugustin
Copy link
Owner

AndreasAugustin commented Aug 17, 2023

Remark
-S flag has been implemented with #20

Describe the feature

Within git you are able to use -m and -S flags for the commit comand e.g.
git commit -S -m "feat(config): :rocket: (#20) map config with cmd options" -m "add a mapping between the config options and the commands"

would be nice if go-gitmoji-cli would also have those options.

Use Case

There is a hook available.
Sometimes people want to use the git commit command together with the hook. Therefore the message parts (type, scope, message, gitmoji) should be kept.

Also -S flag should be available to sign commits (sometimes this is not globally configured)

Proposed Solution

parse the messages and put the parts as initial values.

Acknowledgements

  • I may be able to implement this feature request
@AndreasAugustin AndreasAugustin added the enhancement New feature or request label Aug 17, 2023
@AndreasAugustin AndreasAugustin self-assigned this Aug 17, 2023
AndreasAugustin added a commit that referenced this issue Aug 17, 2023
* feat: ✨ (#20) bind viper flags with cobra flags

* feat: ✨ (#20) bind viper flags with cobra flags

* feat: ✨ (#21) preparations to parse the messages

* feat: ✨ (#21) commit implemented

* feat: ✨ (#21) commit implemented

* docs: 🗑️ issues are now tracked within github issues

* feat: 🚀 add debug to config

* foo

* foo

* foo

* foo

bar

* foo

bar

* foo

* foo

* fix: 🐛 fix issue on windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant