versioncontrol

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Name *string
}

type Git

type Git struct{}

func (Git) CheckoutAndPull

func (git Git) CheckoutAndPull(branchName string)

func (Git) CurrentBranch

func (git Git) CurrentBranch() string

func (Git) DeleteLocalBranch

func (git Git) DeleteLocalBranch(branchName string)

func (Git) DeleteRemoteBranch

func (git Git) DeleteRemoteBranch(branchName string)

func (Git) InitBranch

func (git Git) InitBranch(issueNum int, branchName string)

func (Git) IsRemoteBranch

func (git Git) IsRemoteBranch(branchName string) bool

func (Git) Pull

func (git Git) Pull()

func (Git) Repo

func (git Git) Repo() Repo

type Repo

type Repo struct {
	Owner string
	Name  string
}

type VersionControlClient

type VersionControlClient interface {
	Repo() Repo
	CurrentBranch() string
	Pull()
	CheckoutAndPull(string)
	IsRemoteBranch(string) bool
	InitBranch(int, string)
	DeleteRemoteBranch(string)
	DeleteLocalBranch(string)
}

func GetClient

func GetClient() VersionControlClient

Jump to

Keyboard shortcuts

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