git

package
v0.0.1-main Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Runner runner.Runner
}

Provider is a git functionality provider.

func NewProvider

func NewProvider(runner runner.Runner) *Provider

NewProvider creates a new git functionality provider.

func (*Provider) GetCurrentBranch added in v0.0.2

func (p *Provider) GetCurrentBranch() (string, error)

GetCurrentBranch gets the current active branch of a repository.

func (*Provider) GetLatestRemoteTag

func (p *Provider) GetLatestRemoteTag(owner, repo string) (string, error)

GetLatestRemoteTag gets the latest tag from the given remote git repo.

func (*Provider) GetOwnerAndRepoFromLocal added in v0.0.2

func (p *Provider) GetOwnerAndRepoFromLocal() (string, string, error)

GetOwnerAndRepoFromLocal returns the owner and the repo name from a local git repository.

Jump to

Keyboard shortcuts

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