Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecutorFactory ¶
func ExecutorFactory(deps Dependencies) func(cmd Command) []error
ExecutorFactory provisions a Command Processor
Types ¶
type Dependencies ¶
type Dependencies struct {
LoadConfig func() (config.Config, error)
CreateDir func(path string, perm os.FileMode) error
WriteFile func(path string, data []byte, mode os.FileMode) error
SetCommitTemplate func(path string) error
GitSetHooksPath func(path string) error
GitResolveAliases func(aliases []string) ([]string, []error)
PersistEnabled func(coauthors []string) error
}
Dependencies the real-world dependencies of the ExecutorFactory
Click to show internal directories.
Click to hide internal directories.