add

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(deps Dependencies, req AssignmentRequest) interface{}

Apply assign a co-author to an alias

Types

type AssignmentAborted

type AssignmentAborted struct {
	Alias             string
	ExistingCoauthor  string
	ReplacingCoauthor string
}

AssignmentAborted nothing happened

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
}

AssignmentRequest the arguments of the Runner

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 Runner

Directories

Path Synopsis
interfaceadapter
cmd

Jump to

Keyboard shortcuts

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