semver

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidIncrement = errors.New("invalid increment")

Functions

func Command

func Command() *cobra.Command

Types

type Increment

type Increment string
const (
	IncrementPatch Increment = "patch"
	IncrementMinor Increment = "minor"
	IncrementMajor Increment = "major"
)

func ParseIncrement

func ParseIncrement(inc string) (Increment, error)

type Version

type Version struct {
	// contains filtered or unexported fields
}

func ParseVersion

func ParseVersion(input string) (Version, error)

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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