add

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignmentAborted

type AssignmentAborted struct {
	Alias             string
	ExistingCoauthor  string
	ReplacingCoauthor string
}

AssignmentAborted nothing changed

type AssignmentFailed

type AssignmentFailed struct {
	Reason error
}

AssignmentFailed assignment of coauthor to alias failed with Reason

type AssignmentRequest

type AssignmentRequest struct {
	Alias         *string
	Coauthor      *string
	ForceOverride *bool
}

AssignmentRequest which coauthor to assign to the alias

type AssignmentSucceeded

type AssignmentSucceeded struct {
	Alias    string
	Coauthor string
}

AssignmentSucceeded assignment of coauthor to alias succeeded

type Dependencies

type Dependencies struct {
	SanityCheckCoauthor func(string) error
	GitAddAlias         func(string, string) error
	GitResolveAlias     func(string) (string, error)
	GetAnswerFromUser   func(string) (string, error)
}

Dependencies the dependencies of the add Policy module

type Policy

type Policy struct {
	Deps Dependencies
	Req  AssignmentRequest
}

Policy the policy to apply

func (Policy) Apply

func (policy Policy) Apply() events.Event

Apply assign a co-author to an alias

Directories

Path Synopsis
interfaceadapter
cmd

Jump to

Keyboard shortcuts

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