Documentation
¶
Index ¶
- Constants
- func New(rp *repository.Repo, cfg *semrel.Config, ver string) (*rootCommand, error)
- type CompareOutput
- type ConfigArgs
- type ConfigResult
- type CurrentOutput
- type CurrentVersionArgs
- type CurrentVersionResult
- type InitArgs
- type InitResult
- type NextVersionArgs
- type NextVersionResult
- type ReleaseOutput
- type ValidateOutput
Constants ¶
View Source
const ( ExitSuccess = 0 ExitGeneralError = 1 ExitValidation = 2 ExitConfig = 3 ExitRepository = 4 ExitRelease = 5 ExitAuthentication = 6 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompareOutput ¶
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 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 ¶
Click to show internal directories.
Click to hide internal directories.