git

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicGitHandler

type BasicGitHandler struct{}

func NewBasicGitHandler

func NewBasicGitHandler() *BasicGitHandler

func (*BasicGitHandler) GetGitBranch

func (h *BasicGitHandler) GetGitBranch() (string, error)

type GitHandler

type GitHandler interface {
	GetGitBranch() (string, error)
}

type MockGitHandler

type MockGitHandler struct {
	Branch string
	Error  error
}

func NewMockGitHandler

func NewMockGitHandler() *MockGitHandler

func (*MockGitHandler) GetGitBranch

func (h *MockGitHandler) GetGitBranch() (string, error)

Jump to

Keyboard shortcuts

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