semver

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemVer

type SemVer struct {
	Version *semver.Version
	Prefix  bool
	String  string
}

SemVer represents a SemVer struct

func HighestSemVer

func HighestSemVer(vs []*SemVer) *SemVer

HighestSemVer returns the highest SemVer

func NewSemVer

func NewSemVer(t string) (*SemVer, error)

NewSemVer returns a new SemVer struct

func (*SemVer) BuildBumpedOptions

func (sv *SemVer) BuildBumpedOptions() []string

BuildBumpedOptions returns the options for bump dialog

func (*SemVer) BumpMajor

func (sv *SemVer) BumpMajor() string

BumpMajor bumps major part

func (*SemVer) BumpMinor

func (sv *SemVer) BumpMinor() string

BumpMinor bumps minor part

func (*SemVer) BumpPatch

func (sv *SemVer) BumpPatch() string

BumpPatch bumps patch part

Jump to

Keyboard shortcuts

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