Documentation ¶
Index ¶
- Variables
- func Execute()
- func NewCmdCoauthors(s printers.IOStreams) *cobra.Command
- func NewCmdCoauthorsSuggest(s printers.IOStreams) *cobra.Command
- func NewCmdExplode(s printers.IOStreams) *cobra.Command
- func NewCmdImplode(s printers.IOStreams) *cobra.Command
- func NewCmdMob(s printers.IOStreams) *cobra.Command
- func NewCmdMobHooks(s printers.IOStreams) *cobra.Command
- func NewCmdMobInit(ioStreams printers.IOStreams) *cobra.Command
- func NewCmdMobInitAll(ioStreams printers.IOStreams) *cobra.Command
- func NewCmdMobPrepareCommitMsg(s printers.IOStreams) *cobra.Command
- func NewCmdPrint(s printers.IOStreams) *cobra.Command
- func NewCmdSolo(s printers.IOStreams) *cobra.Command
- func NewCmdVersion(s printers.IOStreams) *cobra.Command
- func NewRootCmd(s printers.IOStreams) *cobra.Command
- type CoauthorsSuggestOptions
- type ExplodeOptions
- type ImplodeOptions
- type InitOneResult
- type MobInitAllOptions
- 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 ¶
func NewCmdCoauthors ¶
func NewCmdCoauthorsSuggest ¶
func NewCmdExplode ¶
func NewCmdImplode ¶
func NewCmdMobHooks ¶
func NewCmdMobInit ¶
func NewCmdMobInitAll ¶ added in v0.5.0
func NewCmdPrint ¶
func NewCmdSolo ¶
func NewCmdVersion ¶
func NewRootCmd ¶
NewRootCmd creates the 'root' command and configures it's nested children
Types ¶
type CoauthorsSuggestOptions ¶
type CoauthorsSuggestOptions struct {
}func NewCoauthorsSuggestOptions ¶
func NewCoauthorsSuggestOptions(s printers.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 {
*printers.PrinterOptions
}
func NewExplodeOptions ¶
func NewExplodeOptions(s printers.IOStreams) *ExplodeOptions
type ImplodeOptions ¶
type ImplodeOptions struct {
*printers.PrinterOptions
}
func NewImplodeOptions ¶
func NewImplodeOptions(s printers.IOStreams) *ImplodeOptions
type InitOneResult ¶ added in v0.5.0
type MobInitAllOptions ¶ added in v0.5.0
func NewMobInitAllOptions ¶ added in v0.5.0
func NewMobInitAllOptions(s printers.IOStreams) *MobInitAllOptions
func (*MobInitAllOptions) Complete ¶ added in v0.5.0
func (o *MobInitAllOptions) Complete(cmd *cobra.Command, args []string) error
Complete the options
func (*MobInitAllOptions) Run ¶ added in v0.5.0
func (o *MobInitAllOptions) Run() error
Run the command
func (*MobInitAllOptions) Validate ¶ added in v0.5.0
func (o *MobInitAllOptions) Validate() error
Validate the options
type MobInitOptions ¶
type MobInitOptions struct {
*printers.PrinterOptions
}
func NewMobInitOptions ¶
func NewMobInitOptions(s printers.IOStreams) *MobInitOptions
type MobOptions ¶
type MobOptions struct { *printers.PrinterOptions Initials []string ListOnly bool PrintMob bool PrintVersion bool CurrentGitUser *authors.Author AllCoAuthorsByInitials map[string]authors.Author }
func NewMobOptions ¶
func NewMobOptions(s printers.IOStreams) *MobOptions
type MobPrepareCommitMsgOptions ¶
type MobPrepareCommitMsgOptions struct { *printers.PrinterOptions // 1-3 positional args provided by git CommitMessageFile string Source gitMessage.Source // optional CommitObject string // optional (required when Source is CommitSource) RawArgs []string }
func NewMobPrepareCommitMsgOptions ¶
func NewMobPrepareCommitMsgOptions(s printers.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 { *printers.PrinterOptions printers.IOStreams VersionDetails *version.DetailStruct InitialsOnly bool }
func NewPrintOptions ¶
func NewPrintOptions(s printers.IOStreams) *PrintOptions
type SoloOptions ¶
type SoloOptions struct {
*printers.PrinterOptions
}
func NewSoloOptions ¶
func NewSoloOptions(s printers.IOStreams) *SoloOptions
type VersionOptions ¶
type VersionOptions struct { *printers.PrinterOptions VersionDetails *version.DetailStruct }
func NewVersionOptions ¶
func NewVersionOptions(s printers.IOStreams) *VersionOptions
Click to show internal directories.
Click to hide internal directories.