Documentation ¶
Index ¶
- func Add(mode, extraArg string)
- func AnythingStaged() bool
- func AreThereChanges() bool
- func Commit(commitMsg string)
- func EmptyCommit(commitMsg string)
- func GetAndSaveNewTeamMember(path string, abbreviation string, tms []input.TeamMember) (input.TeamMember, error)
- func GetPair(commitConfig input.CommitConfig, currentPair []string, ...) ([]input.TeamMember, error)
- func GetTeamMemberByAbbreviation(tms []input.TeamMember, abbreviation string) (input.TeamMember, error)
- func ReviewSummary(summary string) string
- func SeparateAbbreviation(input string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mode, extraArg string)
Add executes the git-add command with a mode. A mode could be: -p or simply a dot.
func AnythingStaged ¶
func AnythingStaged() bool
AnythingStaged checks if there are staged changes in the current dir.
func AreThereChanges ¶
func AreThereChanges() bool
AreThereChanges checks if there are local changes in the current dir.
func GetAndSaveNewTeamMember ¶
func GetAndSaveNewTeamMember(path string, abbreviation string, tms []input.TeamMember) (input.TeamMember, error)
GetAndSaveNewTeamMember runs GetNewTeamMemberFromInput and then saves the result in the team-members file.
func GetPair ¶
func GetPair(commitConfig input.CommitConfig, currentPair []string, teamMembers []input.TeamMember) ([]input.TeamMember, error)
GetPair tries to get the current pairing-partner from the user-input.
func GetTeamMemberByAbbreviation ¶
func GetTeamMemberByAbbreviation(tms []input.TeamMember, abbreviation string) (input.TeamMember, error)
GetTeamMemberByAbbreviation makes a lookup for a team-member by the abbreviation.
func ReviewSummary ¶
ReviewSummary fixes the commit-summary by some simple rules.
func SeparateAbbreviation ¶
SeparateAbbreviation takes a string and splits it by [,| ] and returns a list of existing strings
Types ¶
This section is empty.