Masterminds / vert

Command line version testing: Compare versions at the CLI for use in shell scripts and make files.
Other
59 stars 6 forks source link

bump action #7

Open mh-cbon opened 6 years ago

mh-cbon commented 6 years ago

Hi guys,

Have you considered an action to bump a version ?

Right now i have to deal with a version number stored into some text files, and then bump it to its next patch, to procude some stuff (packer images right now).

I was hoping to grep some.. | vert bump patch in order to make a one liner.

However the operation is not available, have any thoughts ?

Thanks

xzyfer commented 5 years ago

This is what I came looking for

mh-cbon commented 5 years ago

@xzyfer

it should be fairly easy to implement as semver package already implements the increment actions

https://github.com/Masterminds/semver/blob/master/version.go#L169

maybe we should fork ?