gitpath

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// General use for Invalid type.
	ErrInvalidType      = errors.New("Invalid Git Operation Type")
	ErrInvalidInterface = errors.New("Invalid Plugin does not implement GitPath")
)

Functions

func LoadGitPaths

func LoadGitPaths(path string) (map[string]GitPath, error)

LoadGitPaths loads all the available plugins from the path

Types

type GitPath

type GitPath interface {
	// returns a copy of itself with the correct settings
	New(optype string, regex string, reference string) (GitPath, error)
	// Returns if the refrences match
	Match() bool
	// returns the reference title like "master".
	Title() string
}

GitPath is the interface a git path plugin needs to implement

Jump to

Keyboard shortcuts

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