ghubcmd

package
v0.0.0-...-9c55465 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DownloadAssetCmd = &gcli.Command{
	Name:    "down",
	Desc:    "checkout an new branch for development from `source` remote",
	Aliases: []string{"download"},
	Func: func(c *gcli.Command, args []string) error {

		return errorx.New("TODO")
	},
}

DownloadAssetCmd instance

View Source
var GhOpts = struct {
	gitcmd.AutoChDir
	cmdbiz.CommonOpts
}{}

GhOpts object

View Source
var GithubCmd = &gcli.Command{
	Name:    "github",
	Aliases: []string{"gh", "hub", "ghub"},
	Desc:    "useful tools for use github",
	Subs: []*gcli.Command{
		DownloadAssetCmd,
		gitcmd.BatchCmd,
		gitcmd.NewBranchCmd(),
		gitcmd.NewCloneCmd(configProvider),
		gitcmd.NewAddCommitCmd(),
		gitcmd.NewAddCommitPush(),
		gitcmd.NewUpdateCmd(),
		gitcmd.NewUpdatePushCmd(),
		gitcmd.NewOpenRemoteCmd(configProvider),
	},
	Config: func(c *gcli.Command) {
		GhOpts.BindCommonFlags(c)
		GhOpts.BindChdirFlags(c)
		c.On(events.OnCmdRunBefore, func(ctx *gcli.HookCtx) (stop bool) {
			c.Infoln("[kite.GHab] Workdir:", c.WorkDir())
			return false
		})

		c.On(events.OnCmdSubNotFound, gitcmd.RedirectToGitx)
	},
}

GithubCmd commands

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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