cmd

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Feature = "feat"
	Fix     = "fix"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Commit

type Commit struct {
	Type          string
	Scope         string
	Description   string
	BodyAndFooter string
	Footer        string

	Breaking bool

	Hash       string
	ShortHash  string
	AuthorName string
}

Commit represents the conventional commit understanding of a git commit.

type Release

type Release struct {
	Version         *semver.Version
	PreviousVersion *semver.Version
	Date            string
	Breaking        []Commit
	Features        []Commit
	Fixes           []Commit

	CommitURL string
}

Release represents all the meta data about a release.

type ReleaseType

type ReleaseType int

ReleaseType corresponds the semantic version numbers.

const (
	Major ReleaseType = iota
	Minor
	Patch
)

Jump to

Keyboard shortcuts

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