cmd

package
v0.0.0-...-4a80876 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 19 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

View Source
const (
	ExitSuccess        = 0
	ExitGeneralError   = 1
	ExitValidation     = 2
	ExitConfig         = 3
	ExitRepository     = 4
	ExitRelease        = 5
	ExitAuthentication = 6
)

Variables

This section is empty.

Functions

func New

func New(rp *repository.Repo, cfg *semrel.Config, ver string) (*rootCommand, error)

Types

type CompareOutput

type CompareOutput struct {
	Version string `json:"version"`
	Result  bool   `json:"result"`
}

type ConfigArgs

type ConfigArgs struct{}

ConfigArgs are the arguments for the config tool.

type ConfigResult

type ConfigResult struct {
	Development bool     `json:"development"`
	PatchTypes  []string `json:"patch_types"`
	MinorTypes  []string `json:"minor_types"`
	MajorTypes  []string `json:"major_types"`
	Prefix      string   `json:"prefix"`
}

ConfigResult is the result of the config tool.

type CurrentOutput

type CurrentOutput struct {
	Version string `json:"version"`
	Tag     string `json:"tag"`
}

type CurrentVersionArgs

type CurrentVersionArgs struct{}

CurrentVersionArgs are the arguments for the current_version tool.

type CurrentVersionResult

type CurrentVersionResult struct {
	Version string `json:"version"`
}

CurrentVersionResult is the result of the current_version tool.

type InitArgs

type InitArgs struct {
	// Development enables development mode (0.x.x versions, breaking changes as minor)
	Development bool `json:"development,omitempty"`
	// Prefix is the version prefix (e.g., 'v' for v1.0.0)
	Prefix string `json:"prefix,omitempty"`
	// Full generates a full commented config with all options
	Full bool `json:"full,omitempty"`
	// Force overwrites an existing config file
	Force bool `json:"force,omitempty"`
	// PatchTypes are commit types that trigger patch bumps
	PatchTypes []string `json:"patch_types,omitempty"`
	// MinorTypes are commit types that trigger minor bumps
	MinorTypes []string `json:"minor_types,omitempty"`
	// MajorTypes are commit types that trigger major bumps
	MajorTypes []string `json:"major_types,omitempty"`
}

InitArgs are the arguments for the init tool.

type InitResult

type InitResult struct {
	Path    string `json:"path"`
	Created bool   `json:"created"`
	Message string `json:"message"`
}

InitResult is the result of the init tool.

type NextVersionArgs

type NextVersionArgs struct{}

NextVersionArgs are the arguments for the next_version tool.

type NextVersionResult

type NextVersionResult struct {
	Current  string `json:"current"`
	Next     string `json:"next"`
	BumpType string `json:"bump_type"`
}

NextVersionResult is the result of the next_version tool.

type ReleaseOutput

type ReleaseOutput struct {
	Current string `json:"current"`
	Next    string `json:"next"`
	Created bool   `json:"created"`
	DryRun  bool   `json:"dry_run,omitempty"`
}

type ValidateOutput

type ValidateOutput struct {
	Input   string `json:"input"`
	Valid   bool   `json:"valid"`
	Version string `json:"version,omitempty"`
	Error   string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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