package
0.1.14-dev.13
Repository: https://github.com/edgexfoundry/git-semver.git
Documentation: pkg.go.dev
# Functions
Bump the specified semver axis with prefix, invoking WriteVersion on the result.
BumpFinal will strip the pre-release suffix.
BumpMajor will bump the major axis.
BumpMinor will bump the minor axis.
BumpPatch will bump the patch axis.
BumpPre will bump the pre-release suffix.
GetEnv attempt os.LookupEnv returning the default if the key is not found.
Init attempts to clone, but failing that will initialize, the semver orphan branch into .semver directory.
MakeVersion parses the version string and applies the supplied options.
Open the GIT "extent" located at path.
Push the semver branch and any tags to the remote.
ReadVersion reads the semver version for the current branch.
Tag the current HEAD with the current semver version.
WithBuild attaches build/metadata to the version string.
WithPre does nothing for empty prefixes and works like BumpPre otherwise.
WriteVersion writes the version string value to a file named after the current branch.
# Variables
ErrBumpMajorOverflow when the major axis resets to zero.
ErrBumpMinorOverflow when the minor axis resets to zero.
ErrBumpPatchOverflow when the patch axis resets to zero.
ErrBumpPRVerOverflow when the pre-release version resets to zero.
PrePrefix is the default value for the pre-axis.
RemoteName is the name of the remote that this tooling should work with.
UserEmail is the value for the git config user.email in the local semver repository.
UserName is the value for the git config user.name in the local semver repository.