https://github.com/broothie/bump
A SemVer version bumper
https://github.com/broothie/bump
semver versioning versions
Last synced: 11 months ago
JSON representation
A SemVer version bumper
- Host: GitHub
- URL: https://github.com/broothie/bump
- Owner: broothie
- License: mit
- Created: 2022-10-22T04:54:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T21:25:28.000Z (over 3 years ago)
- Last Synced: 2025-07-09T05:03:40.385Z (11 months ago)
- Topics: semver, versioning, versions
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `bump`
A SemVer version bumper
## Installation
```shell script
cargo install --git https://github.com/broothie/bump
```
## Usage
### Example
```console
$ cat version.rb
VERSION = 'v3.2.1'.freeze
$ # Bump patch version
$ bump version.rb
3.2.1 -> 3.2.2
$ cat version.rb
VERSION = 'v3.2.2'.freeze
$ # Bump minor version
$ bump version.rb -s minor
3.2.2 -> 3.3.0
$ cat version.rb
VERSION = 'v3.3.0'.freeze
$ # Bump major version
$ bump version.rb -s major
3.3.0 -> 4.0.0
$ cat version.rb
VERSION = 'v4.0.0'.freeze
```
### Options
```console
$ bump -h
A SemVer version bumper
Usage: bump [OPTIONS]
Arguments:
Options:
-s, --segment SemVer segment to bump [default: patch] [possible values: patch, minor, major]
-n, --number If the input contains multiple SemVer patterns, use this to target by occurrence (1-indexed) [default: 1]
-l, --line If the input contains multiple SemVer patterns, use this to target by line number (1-indexed)
-h, --help Print help information
-V, --version Print version information
```