Documentation
¶
Index ¶
- Variables
- func NewAddCommitCmd() *gcli.Command
- func NewAddCommitPush() *gcli.Command
- func NewBatchCmd() *gcli.Command
- func NewBatchPullCmd() *gcli.Command
- func NewBatchRunCmd() *gcli.Command
- func NewBranchCmd() *gcli.Command
- func NewBranchCreateCmd() *gcli.Command
- func NewBranchDeleteCmd() *gcli.Command
- func NewBranchListCmd() *gcli.Command
- func NewBranchSetupCmd() *gcli.Command
- func NewChangelogCmd() *gcli.Command
- func NewCheckoutCmd() *gcli.Command
- func NewCloneCmd(cfgGetter gitx.ConfigProviderFn) *gcli.Command
- func NewGitEmojisCmd() *gcli.Command
- func NewInitFlowCmd() *gcli.Command
- func NewOpenRemoteCmd(cfgGetter gitx.ConfigProviderFn) *gcli.Command
- func NewPullRequestCmd() *gcli.Command
- func NewRemoteInfoCmd() *gcli.Command
- func NewRepoInfoCmd() *gcli.Command
- func NewShowLogCmd() *gcli.Command
- func NewTagCmd() *gcli.Command
- func NewTagCreateCmd() *gcli.Command
- func NewTagDeleteCmd() *gcli.Command
- func NewTagListCmd() *gcli.Command
- func NewUpdateCmd() *gcli.Command
- func NewUpdatePushCmd() *gcli.Command
- func RedirectToGitx(ctx *gcli.HookCtx) (stop bool)
- func SubCmdNotFound(ctx *gcli.HookCtx) (stop bool)
- type AutoGitDir
Constants ¶
This section is empty.
Variables ¶
View Source
var GitCommands = &gcli.Command{ Name: "git", Desc: "tools for quick use `git` and more extra commands", Aliases: []string{"g", "gitx"}, Subs: []*gcli.Command{ NewRepoInfoCmd(), NewRemoteInfoCmd(), NewPullRequestCmd(), NewCloneCmd(configProvider), NewAddCommitPush(), NewAddCommitCmd(), NewUpdateCmd(), NewUpdatePushCmd(), NewOpenRemoteCmd(configProvider), NewInitFlowCmd(), NewCheckoutCmd(), NewShowLogCmd(), NewChangelogCmd(), NewTagCmd(), NewBatchCmd(), NewBranchCmd(), NewGitEmojisCmd(), }, Config: func(c *gcli.Command) { GitOpts.BindCommonFlags(c) GitOpts.BindChdirFlags(c) c.On(gcli.EvtCmdSubNotFound, SubCmdNotFound) c.On(gcli.EvtCmdRunBefore, func(ctx *gcli.HookCtx) bool { c.Infoln("[kite.GIT] Workdir:", c.WorkDir()) return false }) }, }
GitCommands commands for use git
View Source
var GitOpts = struct { AutoGitDir cmdbiz.CommonOpts }{}
GitOpts object
Functions ¶
func NewBatchPullCmd ¶ added in v0.3.0
func NewBatchRunCmd ¶ added in v0.3.0
func NewBranchCreateCmd ¶ added in v0.3.0
NewBranchCreateCmd instance
func NewBranchDeleteCmd ¶ added in v0.3.0
NewBranchDeleteCmd quickly delete branches
func NewBranchListCmd ¶ added in v0.3.0
NewBranchListCmd instance
func NewBranchSetupCmd ¶ added in v0.3.0
NewBranchSetupCmd instance
func NewChangelogCmd ¶ added in v0.3.0
NewChangelogCmd instance
func NewCloneCmd ¶
func NewCloneCmd(cfgGetter gitx.ConfigProviderFn) *gcli.Command
NewCloneCmd instance
func NewOpenRemoteCmd ¶
func NewOpenRemoteCmd(cfgGetter gitx.ConfigProviderFn) *gcli.Command
NewOpenRemoteCmd instance
func NewRemoteInfoCmd ¶ added in v0.3.0
NewRemoteInfoCmd instance
func NewShowLogCmd ¶ added in v0.3.0
func NewTagCreateCmd ¶ added in v0.3.0
NewTagCreateCmd instance
func NewTagDeleteCmd ¶ added in v0.3.0
NewTagDeleteCmd instance
Types ¶
type AutoGitDir ¶
AutoGitDir auto change to .git dir
func (*AutoGitDir) BindChdirFlags ¶
func (a *AutoGitDir) BindChdirFlags(c *gcli.Command)
BindChdirFlags for auto change dir
Source Files
¶
Click to show internal directories.
Click to hide internal directories.