add

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Override assignmentReplacementStrategy = iota
	KeepExisting
	Ask
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignmentAborted

type AssignmentAborted struct {
}

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
	KeepExisting  *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
cliadapter
cmd

Jump to

Keyboard shortcuts

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