You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do think that this would be a great addition to the CLI. We could provide a template that reflects the conventional commits specification but allow people to customize the template if they want to.
The template engine would need the following features:
variable substitutions to insert the user's answers.
conditional branches to allow for basic logic. This allows to not apply certain elements if no text has been entered.
I am working on this right now. I decided to go for the tera crate. There are only two template engines that work on runtime-provided strings: handlebars and tera. And since tera had the better benchmarking results I opted for it.
I do think that this would be a great addition to the CLI. We could provide a template that reflects the conventional commits specification but allow people to customize the template if they want to.
The template engine would need the following features:
A list of possible engines can be found here: https://lib.rs/keywords/template
The text was updated successfully, but these errors were encountered: