peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 147 forks source link

Add argument to print future change #102

Closed lansman closed 8 years ago

lansman commented 9 years ago

That only prints useful message, do nothing more.

user@comp> bumpversion patch --print-change patch
  version will change from 0.2.1 to 0.2.2
user@comp> bumpversion patch --print-change patch  # again got the same
  version will change from 0.2.1 to 0.2.2
user@comp> bumpversion patch --tag --commit 
user@comp> bumpversion patch --print-change patch
  version will change from 0.2.2 to 0.2.3
peritus commented 9 years ago

Wouldn't

bumpversion --verbose --dry-run | grep $WHAT_YOURE_INTERESTED_IN

work for you ?

lansman commented 9 years ago

Probably it works, but it isn't much covenient, also there is no built-in grep command in Windows... It would be better to have such a command, i suppose.

peritus commented 8 years ago

Looks like there is findstr on windows: https://superuser.com/questions/300815/grep-equivalent-for-windows-7 (idk, just googled it).

Bumpversion is meant to be used together with other programs.