Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- func NewCmdCoauthors(s printers.IOStreams) *cobra.Command
- func NewCmdCoauthorsAdd(s printers.IOStreams) *cobra.Command
- func NewCmdCoauthorsDelete(s printers.IOStreams) *cobra.Command
- func NewCmdCoauthorsEdit(s printers.IOStreams) *cobra.Command
- func NewCmdCoauthorsSuggest(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 NewCmdMobRehash(s printers.IOStreams) *cobra.Command
- func NewCmdMobUninstall(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 CoauthorsAddOptions
- type CoauthorsDeleteOptions
- type CoauthorsEditOptions
- type CoauthorsSuggestOptions
- type ImplodeOptions
- type InitOneResult
- type MobInitAllOptions
- type MobInitOptions
- type MobOptions
- type MobPrepareCommitMsgOptions
- type MobRehashOptions
- type PrintOptions
- type SoloOptions
- type VersionOptions
Constants ¶
View Source
const CommitTemplateWorningMessage = `` /* 517-byte string literal not displayed */
Variables ¶
View Source
var ShimMap = map[string]string{
"git-add-coauthor": "git-mob coauthors add",
"git-delete-coauthor": "git-mob coauthors delete",
"git-edit-coauthor": "git-mob coauthors edit",
"git-mob-print": "git-mob print",
"git-mob-version": "git-mob version",
"git-solo": "git-mob solo",
"git-suggest-coauthors": "git-mob coauthors suggest",
}
ShimMap stores the mapping of helper scripts to the equivalent git-mob subcommands; this mapping is used to auto-generate shim scripts and enable simpler syntax for calling these subcommands as if they were their own git plugins
Functions ¶
func NewCmdCoauthors ¶
func NewCmdCoauthorsAdd ¶ added in v0.7.0
func NewCmdCoauthorsDelete ¶ added in v0.7.0
func NewCmdCoauthorsEdit ¶ added in v0.7.0
func NewCmdCoauthorsSuggest ¶
func NewCmdMobHooks ¶
func NewCmdMobInit ¶
func NewCmdMobInitAll ¶ added in v0.5.0
func NewCmdMobRehash ¶ added in v0.7.3
func NewCmdMobUninstall ¶ added in v0.7.3
func NewCmdPrint ¶
func NewCmdSolo ¶
func NewCmdVersion ¶
func NewRootCmd ¶
NewRootCmd creates the 'root' command and configures it's nested children
Types ¶
type CoauthorsAddOptions ¶ added in v0.7.0
type CoauthorsAddOptions struct {}
func NewCoauthorsAddOptions ¶ added in v0.7.0
func NewCoauthorsAddOptions(s printers.IOStreams) *CoauthorsAddOptions
func (*CoauthorsAddOptions) Complete ¶ added in v0.7.0
func (o *CoauthorsAddOptions) Complete(cmd *cobra.Command, args []string) error
Complete the options
func (*CoauthorsAddOptions) Run ¶ added in v0.7.0
func (o *CoauthorsAddOptions) Run() error
Run the command
func (*CoauthorsAddOptions) Validate ¶ added in v0.7.0
func (o *CoauthorsAddOptions) Validate() error
Validate the options
type CoauthorsDeleteOptions ¶ added in v0.7.0
type CoauthorsDeleteOptions struct {}
func NewCoauthorsDeleteOptions ¶ added in v0.7.0
func NewCoauthorsDeleteOptions(s printers.IOStreams) *CoauthorsDeleteOptions
func (*CoauthorsDeleteOptions) Complete ¶ added in v0.7.0
func (o *CoauthorsDeleteOptions) Complete(cmd *cobra.Command, args []string) error
Complete the options
func (*CoauthorsDeleteOptions) Run ¶ added in v0.7.0
func (o *CoauthorsDeleteOptions) Run() error
Run the command
func (*CoauthorsDeleteOptions) Validate ¶ added in v0.7.0
func (o *CoauthorsDeleteOptions) Validate() error
Validate the options
type CoauthorsEditOptions ¶ added in v0.7.0
type CoauthorsEditOptions struct {}
func NewCoauthorsEditOptions ¶ added in v0.7.0
func NewCoauthorsEditOptions(s printers.IOStreams) *CoauthorsEditOptions
func (*CoauthorsEditOptions) Complete ¶ added in v0.7.0
func (o *CoauthorsEditOptions) Complete(cmd *cobra.Command, args []string) error
Complete the options
func (*CoauthorsEditOptions) Run ¶ added in v0.7.0
func (o *CoauthorsEditOptions) Run() error
Run the command
func (*CoauthorsEditOptions) Validate ¶ added in v0.7.0
func (o *CoauthorsEditOptions) Validate() error
Validate the options
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 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 OverrideAuthorByInitials string 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 MobRehashOptions ¶ added in v0.7.3
type MobRehashOptions struct {
*printers.PrinterOptions
}
func NewMobRehashOptions ¶ added in v0.7.3
func NewMobRehashOptions(s printers.IOStreams) *MobRehashOptions
func (*MobRehashOptions) Complete ¶ added in v0.7.3
func (o *MobRehashOptions) Complete(cmd *cobra.Command, args []string) error
Complete the options
func (*MobRehashOptions) Run ¶ added in v0.7.3
func (o *MobRehashOptions) Run() error
Run the command
func (*MobRehashOptions) Validate ¶ added in v0.7.3
func (o *MobRehashOptions) 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.