cmd

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 Execute

func Execute()

Execute builds the default root command and invokes it with os.Args

func NewCmdCoauthors

func NewCmdCoauthors(ioStreams utils.IOStreams) *cobra.Command

func NewCmdCoauthorsSuggest

func NewCmdCoauthorsSuggest(ioStreams utils.IOStreams) *cobra.Command

func NewCmdExplode

func NewCmdExplode(ioStreams utils.IOStreams) *cobra.Command

func NewCmdImplode

func NewCmdImplode(ioStreams utils.IOStreams) *cobra.Command

func NewCmdMob

func NewCmdMob(ioStreams utils.IOStreams) *cobra.Command

func NewCmdMobHooks

func NewCmdMobHooks(ioStreams utils.IOStreams) *cobra.Command

func NewCmdMobInit

func NewCmdMobInit(ioStreams utils.IOStreams) *cobra.Command

func NewCmdMobPrepareCommitMsg

func NewCmdMobPrepareCommitMsg(ioStreams utils.IOStreams) *cobra.Command

func NewCmdPrint

func NewCmdPrint(ioStreams utils.IOStreams) *cobra.Command

func NewCmdSolo

func NewCmdSolo(ioStreams utils.IOStreams) *cobra.Command

func NewCmdVersion

func NewCmdVersion(ioStreams utils.IOStreams) *cobra.Command

func NewRootCmd

func NewRootCmd(ioStreams utils.IOStreams) *cobra.Command

NewRootCmd creates the 'root' command and configures it's nested children

Types

type CoauthorsSuggestOptions

type CoauthorsSuggestOptions struct {
	*utils.PrinterOptions
	utils.IOStreams
}

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) Run

func (o *CoauthorsSuggestOptions) Run() error

Run the command

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

func (*ExplodeOptions) Complete

func (o *ExplodeOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ExplodeOptions) Run

func (o *ExplodeOptions) Run() error

Run the command

func (*ExplodeOptions) Validate

func (o *ExplodeOptions) Validate() error

Validate the options

type ImplodeOptions

type ImplodeOptions struct {
	*utils.PrinterOptions
	utils.IOStreams
}

func NewImplodeOptions

func NewImplodeOptions(ioStreams utils.IOStreams) *ImplodeOptions

func (*ImplodeOptions) Complete

func (o *ImplodeOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ImplodeOptions) Run

func (o *ImplodeOptions) Run() error

Run the command

func (*ImplodeOptions) Validate

func (o *ImplodeOptions) Validate() error

Validate the options

type MobInitOptions

type MobInitOptions struct {
	*utils.PrinterOptions
	utils.IOStreams
}

func NewMobInitOptions

func NewMobInitOptions(ioStreams utils.IOStreams) *MobInitOptions

func (*MobInitOptions) Complete

func (o *MobInitOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*MobInitOptions) Run

func (o *MobInitOptions) Run() error

Run the command

func (*MobInitOptions) Validate

func (o *MobInitOptions) Validate() error

Validate the options

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

func (*MobOptions) Complete

func (o *MobOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*MobOptions) Run

func (o *MobOptions) Run() error

Run the command

func (*MobOptions) Validate

func (o *MobOptions) Validate() error

Validate the options

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

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

func (*PrintOptions) Complete

func (o *PrintOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*PrintOptions) Run

func (o *PrintOptions) Run() error

Run the command

func (*PrintOptions) Validate

func (o *PrintOptions) Validate() error

Validate the options

type SoloOptions

type SoloOptions struct {
	*utils.PrinterOptions
	utils.IOStreams
}

func NewSoloOptions

func NewSoloOptions(ioStreams utils.IOStreams) *SoloOptions

func (*SoloOptions) Complete

func (o *SoloOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*SoloOptions) Run

func (o *SoloOptions) Run() error

Run the command

func (*SoloOptions) Validate

func (o *SoloOptions) Validate() error

Validate the options

type VersionOptions

type VersionOptions struct {
	*utils.PrinterOptions
	utils.IOStreams
	VersionDetails *version.DetailStruct
}

func NewVersionOptions

func NewVersionOptions(ioStreams utils.IOStreams) *VersionOptions

func (*VersionOptions) Complete

func (o *VersionOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

Run the command

func (*VersionOptions) Validate

func (o *VersionOptions) Validate() error

Validate the options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL