Documentation
¶
Index ¶
- func BumpFilename(base string, suffix string) string
- func ConfigFilename(base string) string
- func Dir(base string) string
- func GetWd(start string) (wd string, err error)
- func Initialize(baseDir string) error
- func OpenGitRepository(dir string) (*git.Repository, error)
- func SaveConfig(baseDir string, cfg *Config) error
- func VersionFilename(base string) string
- type BumpLevel
- type Commit
- type Config
- type ReleaseGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BumpFilename ¶
func ConfigFilename ¶
func Initialize ¶
func OpenGitRepository ¶
func OpenGitRepository(dir string) (*git.Repository, error)
func SaveConfig ¶
func VersionFilename ¶
Types ¶
type Commit ¶
func GetFirstCommitSHA ¶
func GetFirstCommitSHA(repo *git.Repository, filename string) (*Commit, error)
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 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"`
BaseBranch string `json:"base_branch,omitempty,omitzero" toml:"base_branch,omitempty,omitzero" yaml:"base_branch,omitempty,omitzero"`
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.