client

package
v0.0.0-...-0a1839e Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CurrentBranch() (string, error)
	RefLog(cfg RefLogConfig) ([]string, error)
	Checkout(b string) error
}

func NewClient

func NewClient(dir string) Client

type MockClient

type MockClient struct {
	mock.Mock
}

func (*MockClient) Checkout

func (m *MockClient) Checkout(b string) error

func (*MockClient) CurrentBranch

func (m *MockClient) CurrentBranch() (string, error)

func (*MockClient) RefLog

func (m *MockClient) RefLog(cfg RefLogConfig) ([]string, error)

type RefLogConfig

type RefLogConfig struct {
	Pretty string
	Date   string
	Count  int
}

Jump to

Keyboard shortcuts

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