git

package
v2.0.0-alpha.15 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plugins

func Plugins() []plugins.Plugin

Types

type CommandRunner

type CommandRunner interface {
	RunGitCommand(ctx context.Context, root string, cmd *exec.Cmd) error
}

CommandRunner can be implemented to intercept the running of a `git` command in any of the plugins in this package. This can be useful for testing, logging, wrapping IO, etc... It is expected that that plugins in this package will hand over control of the exec.Cmd to the first plugin that implements this interface.

type Versioner

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

func (*Versioner) BuildVersion

func (b *Versioner) BuildVersion(ctx context.Context, root string) (string, error)

func (Versioner) Description

func (b Versioner) Description() string

func (Versioner) PluginName

func (b Versioner) PluginName() string

func (*Versioner) ScopedPlugins

func (b *Versioner) ScopedPlugins() []plugins.Plugin

func (*Versioner) WithPlugins

func (b *Versioner) WithPlugins(f plugins.Feeder)

Jump to

Keyboard shortcuts

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