Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SCMDCheckout is the git sub command for checkout. SCMDCheckout string = "checkout" // SCMDBranch is the git sub command for branch. SCMDBranch string = "branch" )
View Source
const (
// CMDGit is the git shell command.
CMDGit = "git"
)
Variables ¶
View Source
var ErrSubCommandEmpty = errors.New("Git sub-command is empty")
ErrSubCommandEmpty indicates that Config did not validate because of zero valued SubCommand.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct {
// contains filtered or unexported fields
}
Call holds the attributes required to invoke git.
func (*Call) SetSubCommand ¶
SetSubCommand sets the call sub command.
type CommandCraftFunc ¶
CommandCraftFunc represents a function that creates an ExecCmd from a command/args string slice.
type Compatible ¶
type Compatible interface { Git() (ExecCmd, error) Run() error Checkout(string) error SubCommand() string SetSubCommand(string) Args() []string SetArgs([]string) }
Compatible represents a struct that can perform all the tasks that git should.
type CompatibleConstructor ¶
type CompatibleConstructor func(string, []string) Compatible
CompatibleConstructor returns a new Git Compatible struct.
Click to show internal directories.
Click to hide internal directories.