helper

package
v0.0.14-do.not.use Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Levels = []Level{Patch, Minor, Major}

Functions

func AllowedLevels

func AllowedLevels() string

func BumpIterative

func BumpIterative(mod string, level Level, repo RepoData, i FS) error

func BumpModule

func BumpModule(mod string, level Level, data ModData, i FS) error

func CutVersionExtra

func CutVersionExtra(cv string) (string, string)

Types

type FS

type FS interface {
	GitTag(tag string) error
	GitCommit(msg string) error
	BumpModInFile(path, module, version string) (bool, error)
}

type Level

type Level string
const (
	Patch Level = "patch"
	Minor Level = "minor"
	Major Level = "major"
)

func (*Level) Set

func (e *Level) Set(v string) error

func (*Level) String

func (e *Level) String() string

func (*Level) Type

func (e *Level) Type() string

type ModData

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

type RepoData

type RepoData map[string]ModData

func (RepoData) AddMod

func (d RepoData) AddMod(mod string, data Version, deps []string)

func (RepoData) GetDependencyCount

func (d RepoData) GetDependencyCount(mod string) int

func (RepoData) RemoveModule

func (d RepoData) RemoveModule(mod string)

type Version

type Version struct {
	Current   string
	KeepExtra bool
}

func (*Version) GetNextVersion

func (s *Version) GetNextVersion(level Level) (string, error)

Jump to

Keyboard shortcuts

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