Documentation ¶
Index ¶
- type Command
- func (c *Command) ManifestAdd(id, name, email string) error
- func (c *Command) ManifestFetchAdd(fetcher UserFetcher, usernames ...string) error
- func (c *Command) ManifestList(w io.Writer) error
- func (c *Command) ManifestRemove(ids ...string) error
- func (c *Command) TemplateClear() error
- func (c *Command) TemplateSet(ids ...string) error
- func (c *Command) TemplateStatus(w io.Writer) error
- type GitHubFetcher
- type GitLabFetcher
- type Paths
- type RepositoryPaths
- type UserFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Paths Paths
}
Command holds actions for commands
func (*Command) ManifestAdd ¶
ManifestAdd adds a coauthor using manually entered information
func (*Command) ManifestFetchAdd ¶
func (c *Command) ManifestFetchAdd(fetcher UserFetcher, usernames ...string) error
ManifestFetchAdd adds a coauthor by looking up their information remotely
func (*Command) ManifestList ¶
ManifestList lists all coauthors
func (*Command) ManifestRemove ¶
ManifestRemove removes a coauthor from the Manifest
func (*Command) TemplateClear ¶
TemplateClear emptys the coauthors Template
func (*Command) TemplateSet ¶
TemplateSet activates a coauthor in the Template
type GitHubFetcher ¶
type GitLabFetcher ¶
type Paths ¶
Paths contains paths necessary for partner to do its work
func DefaultPaths ¶
DefaultPaths returns calculated Git repository root, commit template and manifest paths relative to the current working directory.
func (Paths) Repository ¶
func (p Paths) Repository() (RepositoryPaths, error)
Repository returns paths relative to the root of the Git project. If no Git repository (.git directory) is found, an error will be returned.
type RepositoryPaths ¶
Repository specific paths