cmd

package
v0.0.0-...-a6336d9 Latest Latest
Warning

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

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

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 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