gitflow

package
v0.0.0-...-de7e16a Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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