gitop

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 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 IGitOperator

type IGitOperator interface {
	// Checkout local branch
	Checkout(branchName string, b bool) error

	// FetchOrigin fetch origin branches
	FetchOrigin() error

	CurrentBranch() (string, error)
}

IGitOperator supports to manage the local git repository.

func NewBasedCmd

func NewBasedCmd(dir string) IGitOperator

NewBasedCmd generate a git operator based command line.

Jump to

Keyboard shortcuts

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