Crates.io | gbump |
lib.rs | gbump |
version | |
source | src |
created_at | 2019-11-14 22:11:43.754314+00 |
updated_at | 2025-02-28 11:12:24.21655+00 |
description | Git tag semantic version bumper |
homepage | https://github.com/nbari/gbump |
repository | https://github.com/nbari/gbump |
max_upload_size | |
id | 181340 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Git tag semantic version bumper
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.
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
If only need the next semver
, use option -q
. for example:
$ gbump -q major
1.0.0
To create a git tag using the latest bump use the flag -t
:
$ gbump -t minor
Tag: 0.2.0 created: 5b1eca044a538fd2f74c4f043f28ca4a46b8f7b7