示例#1
0
文件: git.go 项目: nathanmpark/hub
func Run(command string, args ...string) error {
	cmd := cmd.New("git")

	for _, v := range GlobalFlags {
		cmd.WithArg(v)
	}

	cmd.WithArg(command)

	for _, a := range args {
		cmd.WithArg(a)
	}

	return cmd.Run()
}
示例#2
0
文件: git.go 项目: github/hub
func Run(args ...string) error {
	cmd := gitCmd(args...)
	return cmd.Run()
}