Documentation
¶
Index ¶
- func BumpFilename(base string, suffix string) string
- func CollectBumps(ctx context.Context, logger *slog.Logger, dir string, cfg *Config) (map[string]*ReleaseGroupStatus, error)
- func ConfigFilename(base string) string
- func DeleteBumps(ctx context.Context, dir string) error
- func Dir(base string) string
- func GetCurrentVersion(ctx context.Context, dir string, group ReleaseGroup) (*semver.Version, error)
- func GetNextVersion(ctx context.Context, dir string, group ReleaseGroup, level BumpLevel) (string, error)
- func GetWd(start string) (wd string, err error)
- func Initialize(baseDir string) error
- func ResolveGitInfoForBumps(ctx context.Context, logger *slog.Logger, repo *git.Repository, ...) (map[string]*vcsCommit, error)
- func SaveConfig(baseDir string, cfg *Config) error
- func VersionFilename(base string) string
- type BumpLevel
- type Config
- type InvalidConfigError
- type LogEntry
- type ReleaseGroup
- type ReleaseGroupStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BumpFilename ¶
func CollectBumps ¶
func ConfigFilename ¶
func GetCurrentVersion ¶
func GetNextVersion ¶
func Initialize ¶
func ResolveGitInfoForBumps ¶
func SaveConfig ¶
func VersionFilename ¶
Types ¶
type Config ¶
type Config struct {
Groups []ReleaseGroup `json:"groups,omitempty,omitzero" toml:"groups,omitempty,omitzero" yaml:"groups,omitempty,omitzero"`
}
func LoadConfig ¶
func (*Config) IndexReleaseGroups ¶
func (c *Config) IndexReleaseGroups() map[string]ReleaseGroup
type InvalidConfigError ¶
type InvalidConfigError struct {
// contains filtered or unexported fields
}
func (*InvalidConfigError) Error ¶
func (e *InvalidConfigError) Error() string
type ReleaseGroup ¶
type ReleaseGroup struct {
Name string `json:"name" toml:"name" yaml:"name"`
DisplayName string `json:"display_name,omitempty" toml:"display_name,omitempty" yaml:"display_name,omitempty"`
ChangelogCMD []string `json:"changelog_cmd,omitempty,omitzero" toml:"changelog_cmd,omitempty,omitzero" yaml:"changelog_cmd,omitempty,omitzero"`
CatCMD []string `json:"cat_cmd,omitempty,omitzero" toml:"cat_cmd,omitempty,omitzero" yaml:"cat_cmd,omitempty,omitzero"`
CurrentCMD []string `json:"current_cmd,omitempty,omitzero" toml:"current_cmd,omitempty,omitzero" yaml:"current_cmd,omitempty,omitzero"`
NextCMD []string `json:"next_cmd,omitempty,omitzero" toml:"next_cmd,omitempty,omitzero" yaml:"next_cmd,omitempty,omitzero"`
}
Click to show internal directories.
Click to hide internal directories.