package
Version:
v0.0.0-...-e6605fe
Opens a new window with list of versions in this module.
Published: Mar 10, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
CoauthorTypeGitHub = "github"
CoauthorTypeGitLab = "gitlab"
CoauthorTypeManual = "manual"
)
Coauthor types
View Source
const DefaultPath = "~/.config/partner/manifest.json"
WriteFile saves the manifest to a JSON file
type Coauthor struct {
ID string `json:"id"`
Type string `json:"type"`
Name string `json:"name"`
Email string `json:"email"`
}
Coauthor is an identity to be referenced as a commit coauthor
type Manifest struct {
Coauthors map[string]Coauthor `json:"coauthors"`
}
Manifest contains all coauthors
Add adds coauthors to the Manifest
Find looks up a list of coauthors by their IDs
Remove removes coauthors by their IDs
Source Files
¶
Click to show internal directories.
Click to hide internal directories.