Open lgiordani opened 9 years ago
If I understand correcly this goes in a similar direction as #106 in that this is about creating more API and more pluggable mechanisms for bumpversion, right ?
Yes, let's talk about how something like this would work and how it would look like!
I'm going to check #106 again as I do not remember the whole thing. The new PR #119 I just submitted is a first implementation of this "pluggable" mechanism for version parts. Just a first step towards a full featured API and componentized system.
What about enhancing the configuration method by allowing the user to add a function instead of a list of values? This is easy to do, and the list of values is just a case of the more general concept, with a 'values' function (for example).
This could be useful when the version, or part of the version is, for instance, a date. The rules for bumping a date can be given only with a function.