enable

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 5 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
	LoadConfig                    func() config.Config
	CreateTemplateDir             func(path string, perm os.FileMode) error
	WriteTemplateFile             func(path string, data []byte, mode os.FileMode) error
	GitSetCommitTemplate          func(path string) error
	GitSetHooksPath               func(path string) error
	GitResolveAliases             func(aliases []string) ([]string, []error)
	StateRepositoryPersistEnabled func(coauthors []string) error
}

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
}

Request the coauthors with which to enable git-team

type Succeeded

type Succeeded struct{}

Succeeded successfully enabled git-team

Directories

Path Synopsis
interfaceadapter
cmd

Jump to

Keyboard shortcuts

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