Documentation ¶
Index ¶
Constants ¶
View Source
const DOVER_CONFIG_FILE = ".dover"
View Source
const DOVER_DEFAULT_CONFIG = `[dover]
version_format = "000-A.0"
versioned_files = [
]
`
View Source
const JUST_VERSION = `(?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))?([\.\-\+](?P<release>[a-z]+)([\.-]?(?P<build>\d+))?)?`
TODO: combines these strings
View Source
const PACKAGE_JSON_CONFIG_FILE = "package.json"
View Source
const PYPROJECT_CONFIG_FILE = "pyproject.toml"
View Source
const VERSION = "0.2.1-dev.4"
View Source
const VERSION_REGEX = `` /* 156-byte string literal not displayed */
Variables ¶
View Source
var FORMAT_REGEX string = `^(000)([^a-zA-ZA\d])?([aA])?([^a-zA-Z\d])?(0)?$`
View Source
var LONG = map[string]string{"dev": "dev", "alpha": "alpha", "beta": "beta", "rc": "rc", "d": "dev", "a": "alpha", "b": "beta"}
View Source
var PARTS = [6]string{"major", "minor", "patch", "release", "prod", "build"}
View Source
var RELEASE = []string{"dev", "alpha", "beta", "rc"}
View Source
var RELEASES = map[string]string{"dev": "d", "alpha": "a", "beta": "b", "rc": "rc", "d": "dev", "a": "alpha", "b": "beta"}
View Source
var SHORT = map[string]string{"dev": "d", "alpha": "a", "beta": "b", "rc": "rc", "d": "d", "a": "a", "b": "b"}
Functions ¶
func ExitOnError ¶
func ExitOnError(e error)
func ParseCommandline ¶
func ParseCommandline() docopt.Opts
Types ¶
type ColorizedWriter ¶
type ColorizedWriter struct {
// contains filtered or unexported fields
}
type ConfigValues ¶
type ConfigValues struct {
// contains filtered or unexported fields
}
type ExecutionArgs ¶
type ExecutionArgs struct {
// contains filtered or unexported fields
}
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func NewVersionFormater ¶
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
func NewUsageBuilder ¶
func NewUsageBuilder() *Usage
type VersionFinder ¶
type VersionFinder struct {
// contains filtered or unexported fields
}
func NewVersionFinder ¶
func NewVersionFinder() *VersionFinder
type VersionMatch ¶
type VersionMatch struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.