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.
Click to show internal directories.
Click to hide internal directories.