git

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.2

type Config struct {
	// Prefix to add to version strings
	Prefix string
}

type Git

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

func Open

func Open(path string, cfg Config) (*Git, error)

func (*Git) History added in v0.0.4

func (g *Git) History() (string, error)

func (*Git) Increment

func (g *Git) Increment(major, minor, patch, dev bool) (semver.Version, error)

Jump to

Keyboard shortcuts

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