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

Functions to decrease version numbers #153

Open
nikoksr opened this issue May 25, 2020 · 0 comments
Open

Functions to decrease version numbers #153

nikoksr opened this issue May 25, 2020 · 0 comments

Comments

@nikoksr
Copy link

nikoksr commented May 25, 2020

Problem:
In one of my projects I need an internal fallback version to the current version. This fallback version should be the direct minor or major predecessor of the current version. In my case I would need the possibility to reduce the number of the major or minor version.

Example:
Current version: v0.20.0
Fallback version: v0.19.0

Proposed solution:
We would need the exact opposite of the functions IncMajor, IncMinor, IncPatch (e.g. DecMajor, DecMinor, DecPatch) which would decrease the version numbers respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant