git

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitCommand

type CommitCommand interface {
	Execute(message string) error
}

CommitCommand is an interface that defines the contract for the git commit command.

func MakeCommitCommand

func MakeCommitCommand() CommitCommand

func NewCommitCommand

func NewCommitCommand(executor Executor) CommitCommand

NewCommitCommand creates a new instance of CommitCommand.

type DiffCommand

type DiffCommand interface {
	Execute() (string, error)
}

DiffCommand is an interface that defines the contract for the git diff command.

func MakeDiffCommand

func MakeDiffCommand() DiffCommand

func NewDiffCommand

func NewDiffCommand(executor Executor) DiffCommand

NewDiffCommand creates a new instance of DiffCommand.

type Executor

type Executor interface {
	Command(arg ...string) (string, error)
	CommandInDir(dir string, arg ...string) (string, error)
}

Executor is an interface that defines the contract for the git command executor.

func MakeExecutor

func MakeExecutor() Executor

func NewExecutor

func NewExecutor() Executor

NewExecutor creates a new instance of Executor.

Jump to

Keyboard shortcuts

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