the-haive / FlexVersion

Easy and flexible creation of version-strings (++) based on information from the git-repo (commits, merges and tags).
MIT License
1 stars 0 forks source link

Add support for using `args` and `env` in the configuration strings #17

Open Spiralis opened 5 years ago

Spiralis commented 5 years ago

This will allow FlexVersion to be called i.e. once per project, with i.e. arg Project=MyProject, so that the match regex for the VersionSource will match only for tags prefixed with "MyProject-". We should inject these into the match regex via a simple replacement, like for instance $Arg:Project, or $Env:Project.

This feature will often be used in combination with feature #19 to constrain the git log to given paths only. This is useful for cases where individual parts of a repo is to have separate versioning.