app

package
v0.2.1-dev.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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 Execute

func Execute()

func ExitOnError

func ExitOnError(e error)

func IndexOf

func IndexOf[T string | int](list *[]T, value T) int

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

func NewVersionFormater(versionFormatString string) *Formatter

type Usage

type Usage struct {
	// contains filtered or unexported fields
}

func NewUsageBuilder

func NewUsageBuilder() *Usage

func (*Usage) HelpText

func (u *Usage) HelpText(colorize bool) string

func (*Usage) UsageText

func (u *Usage) UsageText(colorize bool) string

type Version

type Version struct {
	// contains filtered or unexported fields
}

func NewVersion

func NewVersion(match []string) *Version

type VersionFinder

type VersionFinder struct {
	// contains filtered or unexported fields
}

func NewVersionFinder

func NewVersionFinder() *VersionFinder

func (*VersionFinder) Find

func (vf *VersionFinder) Find(line string) (Version, bool)

type VersionMatch

type VersionMatch struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL