Documentation
¶
Index ¶
- Variables
- func Execute()
- func NewCmdCoauthors(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdCoauthorsSuggest(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdExplode(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdImplode(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdMob(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdMobHooks(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdMobInit(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdMobPrepareCommitMsg(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdPrint(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdSolo(ioStreams utils.IOStreams) *cobra.Command
- func NewCmdVersion(ioStreams utils.IOStreams) *cobra.Command
- func NewRootCmd(ioStreams utils.IOStreams) *cobra.Command
- type CoauthorsSuggestOptions
- type ExplodeOptions
- type ImplodeOptions
- type MobInitOptions
- type MobOptions
- type MobPrepareCommitMsgOptions
- type PrintOptions
- type SoloOptions
- type VersionOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var GitMobPluginMap = map[string]string{
"git-mob-print": "git-mob print",
"git-mob-version": "git-mob version",
"git-solo": "git-mob solo",
"git-suggest-coauthors": "git-mob coauthors suggest",
}
Functions ¶
Types ¶
type CoauthorsSuggestOptions ¶
type CoauthorsSuggestOptions struct {
}
func NewCoauthorsSuggestOptions ¶
func NewCoauthorsSuggestOptions(ioStreams utils.IOStreams) *CoauthorsSuggestOptions
func (*CoauthorsSuggestOptions) Complete ¶
func (o *CoauthorsSuggestOptions) Complete(cmd *cobra.Command, args []string) error
Complete the options
func (*CoauthorsSuggestOptions) Validate ¶
func (o *CoauthorsSuggestOptions) Validate() error
Validate the options
type ExplodeOptions ¶
type ExplodeOptions struct {
*utils.PrinterOptions
utils.IOStreams
}
func NewExplodeOptions ¶
func NewExplodeOptions(ioStreams utils.IOStreams) *ExplodeOptions
type ImplodeOptions ¶
type ImplodeOptions struct {
*utils.PrinterOptions
utils.IOStreams
}
func NewImplodeOptions ¶
func NewImplodeOptions(ioStreams utils.IOStreams) *ImplodeOptions
type MobInitOptions ¶
type MobInitOptions struct {
*utils.PrinterOptions
utils.IOStreams
}
func NewMobInitOptions ¶
func NewMobInitOptions(ioStreams utils.IOStreams) *MobInitOptions
type MobOptions ¶
type MobOptions struct {
*utils.PrinterOptions
utils.IOStreams
Initials []string
ListOnly bool
PrintVersion bool
CurrentGitUser *authors.Author
AllCoAuthorsByInitials map[string]authors.Author
}
func NewMobOptions ¶
func NewMobOptions(ioStreams utils.IOStreams) *MobOptions
type MobPrepareCommitMsgOptions ¶
type MobPrepareCommitMsgOptions struct {
*utils.PrinterOptions
utils.IOStreams
// 1-3 positional args provided by git
CommitMessageFile string
Source msg.Source // optional
CommitObject string // optional (required when Source is CommitSource)
RawArgs []string
}
func NewMobPrepareCommitMsgOptions ¶
func NewMobPrepareCommitMsgOptions(ioStreams utils.IOStreams) *MobPrepareCommitMsgOptions
func (*MobPrepareCommitMsgOptions) Complete ¶
func (o *MobPrepareCommitMsgOptions) Complete(cmd *cobra.Command, args []string) error
Complete the options
func (*MobPrepareCommitMsgOptions) Run ¶
func (o *MobPrepareCommitMsgOptions) Run() error
Run the command
func (*MobPrepareCommitMsgOptions) Validate ¶
func (o *MobPrepareCommitMsgOptions) Validate() error
Validate the options
type PrintOptions ¶
type PrintOptions struct {
*utils.PrinterOptions
utils.IOStreams
VersionDetails *version.DetailStruct
InitialsOnly bool
}
func NewPrintOptions ¶
func NewPrintOptions(ioStreams utils.IOStreams) *PrintOptions
type SoloOptions ¶
type SoloOptions struct {
*utils.PrinterOptions
utils.IOStreams
}
func NewSoloOptions ¶
func NewSoloOptions(ioStreams utils.IOStreams) *SoloOptions
type VersionOptions ¶
type VersionOptions struct {
*utils.PrinterOptions
utils.IOStreams
VersionDetails *version.DetailStruct
}
func NewVersionOptions ¶
func NewVersionOptions(ioStreams utils.IOStreams) *VersionOptions
Source Files
¶
Click to show internal directories.
Click to hide internal directories.