9 releases (4 stable)

✓ Uses Rust 2018 edition

1.0.3 Mar 17, 2020
1.0.2 Jan 24, 2020
1.0.1 Nov 19, 2019
0.4.0 Nov 15, 2019
0.1.0 Nov 14, 2019

#223 in Command line utilities

Download history 14/week @ 2019-12-02 50/week @ 2019-12-09 7/week @ 2019-12-23 14/week @ 2020-01-06 78/week @ 2020-01-13 26/week @ 2020-01-20 4/week @ 2020-01-27 2/week @ 2020-02-03 9/week @ 2020-02-10 16/week @ 2020-02-17 28/week @ 2020-02-24 1/week @ 2020-03-02 16/week @ 2020-03-09 87/week @ 2020-03-16

70 downloads per month

BSD-3-Clause

12KB
222 lines

gbump

Git tag semantic version bumper

crates.io Build Status

What does it do?

Will print the current semver version if any and the bumped version. If the option -q (quiet) is used it will only print the bumped version. If the option -t (tag) is used then it will create a git tag with the bumped version.

How to use it?

To install:

cargo install gbump

You can copy gbump to /usr/local/bin/gbump or somewhere available in your path

For usage type:

$ gbump -h

SemVer options are: patch, minor, major. (defaults to patch)

For example if current version tag is 0.1.1:

Using patch will bump 0.1.1 to 0.1.2

$ gbump patch
0.1.1 --> 0.1.2

Using minor will bump 0.1.1 to 0.2.0

$ gbump minor
0.1.1 --> 0.2.0

Using major will bump 0.1.1 to 1.0.0

$ gbump major
0.1.1 --> 1.0.0

Quiet mode

If only need the next semver, use option -q. for example:

$ gbump -q major
1.0.0

--tag (git tag -a X.Y.Z -m "X.Y.Z")

To create a git tag using the latest bump use the flag -t:

 $ gbump -t minor
 Tag: 0.2.0 created: 5b1eca044a538fd2f74c4f043f28ca4a46b8f7b7

Dependencies

~11MB
~279K SLoC