Documentation
¶
Overview ¶
Package config handles parsing and validation of .yeet.toml configuration files.
Index ¶
Constants ¶
View Source
const DefaultFile = ".yeet.toml"
Variables ¶
View Source
var ErrInvalidConfig = errors.New("invalid config")
Functions ¶
This section is empty.
Types ¶
type CalVerConfig ¶
type CalVerConfig struct {
Format string `toml:"format"`
}
type ChangelogConfig ¶
type Config ¶
type Config struct {
Versioning VersioningStrategy `toml:"versioning"`
Branch string `toml:"branch"`
Provider ProviderType `toml:"provider"`
TagPrefix string `toml:"tag_prefix"`
VersionFiles []string `toml:"version_files,omitempty"`
Release ReleaseConfig `toml:"release"`
Changelog ChangelogConfig `toml:"changelog"`
CalVer CalVerConfig `toml:"calver"`
}
type ProviderType ¶
type ProviderType = string
const ( ProviderGitHub ProviderType = "github" ProviderGitLab ProviderType = "gitlab" )
type ReleaseConfig ¶
type VersioningStrategy ¶
type VersioningStrategy = string
const ( // VersioningSemver uses semantic versioning (MAJOR.MINOR.PATCH). VersioningSemver VersioningStrategy = "semver" // VersioningCalVer uses calendar versioning (e.g., YYYY.0M.MICRO). VersioningCalVer VersioningStrategy = "calver" )
Click to show internal directories.
Click to hide internal directories.