An open API service indexing awesome lists of open source software.

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

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
```