git

package
v1.12.15-0...-edc2ec3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NativeService

type NativeService interface {
	Service
	CMDExecutor() cmd.CmdExecutor
}

type Options

type Options struct {
	CmdExecutor cmd.CmdExecutor
	ShouldLog   bool
}

type Service

type Service interface {
	SetCICDOrigin(origin string) (stdout, stderr string, err error)
	GitRepoPath() (path string, stdout, stderr string, err error)
	CurrentBranch() (branch glow.Branch, stdout, stderr string, err error)
	BranchList() (branchList []glow.Branch, stdout, stderr string, err error)
	Fetch() (stdout, stderr string, err error)
	AddAll() (stdout, stderr string, err error)
	Stash() (stdout, stderr string, err error)
	StashPop() (stdout, stderr string, err error)
	Commit(message string) (stdout, stderr string, err error)
	Push(setUpstream bool) (stdout, stderr string, err error)
	Create(b glow.Branch, skipChecks bool) (stdout, stderr string, err error)
	Checkout(b glow.Branch) (stdout, stderr string, err error)
	CleanupBranches(cleanupGone, cleanupUntracked bool) (stdout, stderr string, err error)
	CleanupTags(cleanupUntracked bool) (stdout, stderr string, err error)
	RemoteBranchExists(branchName string) (exists bool, stdout, stderr string, err error)
}

Service describes all actions which can performed with git

func NewLoggingService

func NewLoggingService(s Service) Service

NewLoggingService returns a new instance of a logging Service.

func NewNativeService

func NewNativeService(options Options) Service

Directories

Path Synopsis
Package mock_git is a generated GoMock package.
Package mock_git is a generated GoMock package.

Jump to

Keyboard shortcuts

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