Categorygithub.com/linyows/git-semv
modulepackage
0.3.0-alpha.2
Repository: https://github.com/linyows/git-semv.git
Documentation: pkg.go.dev

# README

git-semv

Git-Semv is a Git plugin for Semantic Versioning.

travis codecov release godoc license

Installation

Install git-semv binary in the same standard locations in the filesystem.

$ go get github.com/linyows/git-semv/cmd/git-semv

or download zip file from releases.

Usage

Show list:

$ git semv list
v1.2.1-alpha.0
v1.2.0
v1.2.0-rc.1
v1.2.0-rc.0
v1.2.0-beta.0+ba8a247.foobar
v1.2.0-alpha.0+a2a784b.anonymous
v1.1.0
v1.0.1
v1.0.0

Show latest version:

$ git semv now
v1.2.0

Show next version:

# with pre-release option
$ git semv patch --pre
v1.2.1-alpha.1
# specify pre-release name option
$ git semv patch --pre-name beta
v1.2.1-beta.0
# next minor version
$ git semv minor
v1.3.0
# with bump option
$ git semv minor --bump
git tag v1.3.0 && git push origin v1.3.0
# next major version with build option
$ git semv major --pre --build
v2.0.0-alpha.0+9125b23.linyows

Contribution

  1. Fork (https://github.com/linyows/git-semv/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

linyows

# Packages

No description provided by the author

# Functions

BuildName for option.
GetList returns List.
Latest returns latest version.
MustNew creates Semv.
PreReleaseName for option.

# Variables

LatestCommitCmd for git.
TagCmd for tag list.
UsernameCmd for git.

# Structs

Cmd struct.
List struct.
Semv struct.

# Interfaces

Cmder interface.

# Type aliases

Option is func.