bump

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2020 License: MIT Imports: 11 Imported by: 0

README

bump

Go status release releases

bump returns next semantic version tag.

Installation

# Install latest version. (Install it into ./bin/ by default).
$ curl -sfL https://raw.githubusercontent.com/haya14busa/bump/master/install.sh| sh -s

# Specify installation directory ($(go env GOPATH)/bin/) and version.
$ curl -sfL https://raw.githubusercontent.com/haya14busa/bump/master/install.sh| sh -s -- -b $(go env GOPATH)/bin [vX.Y.Z]

# In alpine linux (as it does not come with curl by default)
$ wget -O - -q https://raw.githubusercontent.com/haya14busa/bump/master/install.sh| sh -s [vX.Y.Z]

# homebrew / linuxbrew
$ brew install haya14busa/tap/bump
$ brew upgrade haya14busa/tap/bump

# Go
$ go get github.com/haya14busa/bump

Usage

# Usage: bump [major,minor,patch (default=patch)]
$ git tag
v0.0.1
v0.0.2
v0.0.3
v0.0.4
$ bump patch
v0.0.5
$ bump minor
v0.1.0
$ bump major
v1.0.0

# Annotate next patch version tag.
$ git tag -a $(bump patch) -m $(bump patch)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL