enable

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aborted

type Aborted struct{}

Aborted aborted because no coauthors have been provided

type Dependencies

type Dependencies struct {
	SanityCheckCoauthors func([]string) []error
	CommitSettingsReader commitsettings.Reader
	CreateTemplateDir    func(path string, perm os.FileMode) error
	WriteTemplateFile    func(path string, data []byte, mode os.FileMode) error
	CreateHooksDir       func(path string, perm os.FileMode) error
	WriteHookFile        func(path string, data []byte, mode os.FileMode) error
	Lstat                func(path string) (os.FileInfo, error)
	Remove               func(path string) error
	Symlink              func(realPath string, linkPath string) error
	GitResolveAliases    func(aliases []string) ([]string, []error)
	ConfigReader         config.Reader
	GitConfigWriter      gitconfig.Writer
	GitConfigReader      gitconfig.Reader
	StateWriter          state.Writer
	GetEnv               func(string) string
	GetWd                func() (string, error)
	ActivationValidator  activation.Validator
}

Dependencies the dependencies of the enable Policy module

type Failed

type Failed struct {
	Reason []error
}

Failed failed to enable git-team with Reason

type Policy

type Policy struct {
	Deps Dependencies
	Req  Request
}

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

func (Policy) Apply

func (policy Policy) Apply() events.Event

Apply enable git-team with the provided co-authors

type Request

type Request struct {
	AliasesAndCoauthors *[]string
	UseAll              *bool
}

Request the coauthors with which to enable git-team

type Succeeded

type Succeeded struct{}

Succeeded successfully enabled git-team

Directories

Path Synopsis
cliadapter
commitsettings

Jump to

Keyboard shortcuts

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