Crates.io | fistbump |
lib.rs | fistbump |
version | 1.0.0 |
source | src |
created_at | 2019-09-21 23:53:16.307912 |
updated_at | 2020-07-12 23:50:16.762518 |
description | A tiny command line utility for managing your project's version numbers |
homepage | |
repository | https://github.com/chrisshiplet/fistbump |
max_upload_size | |
id | 166673 |
size | 31,254 |
A tiny command line utility for managing your project's version numbers.
Obtain the binary from the Releases page and put it somewhere on your PATH. Make sure to chmod +x
the binary on Linux and MacOS.
With Cargo: Run cargo install fistbump
Supported by macOS 10.7+. Packaged with Homebrew.
With Brew:
brew tap nearengine/tap
brew install nearengine/tap/fistbump
fistbump
is used with a configuration file that lives in your project directory. To specify a configuration, create a file in your project's root directory called .fistbumprc.json
.
{
"current_version": "0.1.0",
"files": [
{
"path": "Cargo.toml",
"search": "version = \"{current_version}\"",
"replace": "version = \"{new_version}\""
}
],
"search": "{current_version}",
"replace": "{new_version}"
}
The search
and replace
configs are always optional. They default to {current_version}
and {new_version}
, respectively. You can change these to match on more specific strings, but don't forget to include the {current_version}
or {new_version}
in your string. They may only be plain strings, regex is not supported at this time.
The only required fields are current_version
and files
(which must each contain a path
).
When you create a new release on your project, run fistbump <version>
where <version>
is the new version string. For example: fistbump 1.0.0
.
Set FISTBUMP_LOG_LEVEL
to view detailed logs while fistbump
is running. The default value is error
. Valid values are debug
, info
, error
. Example to view all output: FISTBUMP_LOG_LEVEL=debug fistbump 1.0.0
.
Run FISTBUMP_LOG_LEVEL=debug cargo run -- 1.0.0
to view all debugging output.
fistbump <version>
cargo update
git commit -am "<version>"
git tag -a <version> -m "<release notes>"
git push --all
cargo publish --dry-run
cargo publish
If fistbump
makes your life easier, consider contributing to further development by donating to bitcoin:18Xg5pLi4ueMCpoNHt5of44AirPhzjXXQ2
If you would like to contribute code to the project, feel free to submit pull requests for existing issues or file an issue for an enhancement or bug request. Pull requests will be merged at the sole discretion of the maintainer.