command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Dec 2, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Bump
Bump handles semantic version updates.
Installation
$ go install github.com/olivere/bump
In a nutshell
$ echo v1.0.0 | bump
v1.0.1
$ echo 1.0.0 | bump
1.0.1
$ echo 1.0.1 | bump -kind=patch
1.0.2
$ echo 1.0.0 | bump -kind=minor
1.1.0
$ echo 1.0.0 | bump -kind=major
2.0.0
$ cat VERSION
v1.0.0
$ bump -kind=minor -i VERSION -o VERSION.out
$ cat VERSION.out
v1.0.1
$ bump -h
Usage of bump:
bump [flags]
Flags:
-i string
Input file (default: stdin)
-kind string
Kind of update: major, minor, or patch (default: patch) (default "patch")
-o string
Output file (default: stdout)
License
MIT. See LICENSE.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.