Documentation ¶
Index ¶
- Constants
- func CheckVersions(versions *Versions) error
- func CurrentVersion() (string, error)
- func Exists(path string) bool
- func GenerateSettingFile()
- func IncrementSpecifiedVersion(current string, index int) (string, error)
- func ParseSettings(settingsFileName string, settings *Settings) error
- func Replace(settings Settings) error
- func SearchSettingFile() error
- func SemVerToInteger(semVer string) int
- func Upgrade(which int) (string, error)
- func UpgradeVersion(current string, which int) (string, error)
- func WriteBackSettings(settings Settings) error
- type File
- type Settings
- type Version
- type Versions
Constants ¶
View Source
const ( PATCH = iota MINOR MAJOR )
View Source
const SEMANTIC_VERSION_PATTERN = `\d+\.\d+\.\d+`
View Source
const SEQUENTIAL_VERSION_PATTERN = `\d+`
View Source
const SETTINGS_FILE_NAME = ".yangpao.toml"
Variables ¶
This section is empty.
Functions ¶
func CheckVersions ¶
func CurrentVersion ¶
func GenerateSettingFile ¶
func GenerateSettingFile()
func ParseSettings ¶
func SearchSettingFile ¶
func SearchSettingFile() error
func SemVerToInteger ¶ added in v0.1.0
func WriteBackSettings ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.