helper

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

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(ctx context.Context, mod string, level Level, repo RepoData, i FS) error

func BumpModule

func BumpModule(ctx context.Context, mod string, level Level, data ModData, i FS) error

func CutVersionExtra

func CutVersionExtra(cv string) (string, string)

Types

type FS

type FS interface {
	GitTag(ctx context.Context, tag string) error
	GitCommit(ctx context.Context, 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