bump

package
v0.0.0-...-bdbb56d Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version   string = "0.1.0"
	BumpPatch int    = 3
	BumpMinor int    = 2
	BumpMajor int    = 1
)

Variables

View Source
var (
	GolangRegex = []string{
		fmt.Sprintf("^const [vV]ersion string = \"(?P<version>%v)\"", changelog.SemVerRegex),
		fmt.Sprintf("^const [vV]ersion := \"(?P<version>%v)\"", changelog.SemVerRegex),
		fmt.Sprintf("^\\S[vV]ersion string = \"(?P<version>%v)\"", changelog.SemVerRegex),
		fmt.Sprintf("^\\S[vV]ersion := \"(?P<version>%v)\"", changelog.SemVerRegex),
	}

	DockerRegex = []string{
		fmt.Sprintf("^LABEL \"[vV]ersion\"=\"(?P<version>%v)\"", changelog.SemVerRegex),
	}

	JavaScriptJSONFields = []string{
		"version",
	}
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Directories []string
	Languages   []string
	Consistent  bool
}

type Language

type Language struct {
	Name       string
	Files      []string
	Regex      *[]string
	JSONFields *[]string
}

type Project

type Project struct {
	FS                   afero.Fs
	Dirs                 []string
	Langs                []Language
	ConsistentVersioning bool
}

func New

func New(fs afero.Fs) (*Project, error)

func (*Project) Bump

func (p *Project) Bump(action int) error

Jump to

Keyboard shortcuts

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