cmd

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArg = errors.New("invalid arg")
)

Functions

func BumpCmd

func BumpCmd(bumpFunc bump.Func, pushTag vergo.PushTagFunc) *cobra.Command

func CheckCmd

func CheckCmd(
	skipHintPresent release.SkipHintPresentFunc,
	validateHEAD release.ValidateHEADFunc,
	incrementHint release.IncrementHintFunc) *cobra.Command

func ExactValidArgs

func ExactValidArgs(n int) cobra.PositionalArgs

func Execute

func Execute() error

Execute executes the root command.

func GetCmd

func GetCmd(latest, previous RefFunc, current vergo.CurrentVersionFunc) *cobra.Command

func ListCmd

func ListCmd(listRefs ListRefs) *cobra.Command

func OnlyValidArgsAndAliases

func OnlyValidArgsAndAliases(cmd *cobra.Command, args []string) error

OnlyValidArgsAndAliases returns an error if any args are not in the list of ValidArgs.

func PushCmd

func PushCmd() *cobra.Command

func RootCmd

func RootCmd() *cobra.Command

func ShowCmd

func ShowCmd() *cobra.Command

ShowCmd is in incubation

func VersionCmd

func VersionCmd() *cobra.Command

Types

type ListRefs

type ListRefs func(
	repo *git.Repository,
	prefix string,
	direction vergo.SortDirection,
	maxListSize int) ([]vergo.SemverRef, error)

type RefFunc

type RefFunc func(repo *git.Repository, prefix string) (vergo.SemverRef, error)

type RootFlags

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

Jump to

Keyboard shortcuts

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