bump2version
bump2version copied to clipboard
Adding --show option for CI/CD processes to consume
Adds --show option referenced in these issues:
- https://github.com/c4urself/bump2version/issues/57
- https://github.com/c4urself/bump2version/issues/181
I also strongly desire this feature, so I aimed for simplicity and minimal change on this add-on, and tried to match the coding style as best as possible. I defer to the maintainer should they have stronger opinions on implementation 😉 , but I believe there is strong interest in this feature overall.
This is long overdue, thanks for contributing this.
If I find the time, I will review this and include it in the next release.
Might it be better to use print rather than logging to output the version? That would play nicer with scripting, is simpler, and more expected, as logging writes to stderr and should be used to communicate with the user, where print uses stdout and represents a program's primary output.
@clbarnes I don't have a strong opinion on that, but it's a trivial change if desired - @florisla thoughts?
I agree that the --show output should go to stdout.