enable

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 5 Imported by: 0

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 Command

type Command struct {
	Coauthors []string
}

Command add a <Coauthor> under "team.alias.<Alias>"

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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