Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateCmd = &gcli.Command{ Name: "update", Desc: "Update from origin and main remote repositories", Aliases: []string{"up", "pul", "pull"}, Config: func(c *gcli.Command) { gituse.BindCommonFlags(c) }, Func: func(c *gcli.Command, args []string) error { pull := gitw.Cmd("pull", args...) pull.WithWorkDir(gituse.Workdir) pull.OnBeforeExec(gitw.PrintCmdline) return pull.Run() }, }
UpdateCmd command
View Source
var UpdatePushCmd = &gcli.Command{ Name: "update-push", Desc: "Update from origin and main remote, then push to origin remote", Aliases: []string{"up-push", "upp"}, Config: func(c *gcli.Command) { gituse.BindCommonFlags(c) c.BoolVar(&upOpts.notPush, &gcli.FlagMeta{ Name: "not-push", Desc: "dont execute git push", Shorts: []string{"np"}, }) }, Func: func(c *gcli.Command, args []string) error { pull := gitw.Cmd("pull", args...) pull.WithWorkDir(gituse.Workdir) pull.OnBeforeExec(gitw.PrintCmdline) return pull.Run() }, }
UpdatePushCmd command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.