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.
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
- Fork (https://github.com/linyows/git-semv/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request
Author
# Packages
No description provided by the author
# Functions
BuildName for option.
GetList returns List.
Latest returns latest version.
MustNew creates Semv.
PreReleaseName for option.
# Interfaces
Cmder interface.
# Type aliases
Option is func.