// vcsGit describes how to use Git.
var vcsGit = &vcsCmd{
name: "Git",
cmd: "git",
createCmd: []string{"clone --progress {repo} {dir}", "--git-dir={dir}/.git submodule update --init --recursive"},
downloadCmd: []string{"pull --ff-only", "submodule update --init --recursive"},
。。。
var buf bytes.Buffer
cmd.Stdout = &buf
cmd.Stderr = &buf
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err = cmd.Run()
Created
January 20, 2016 02:00
-
-
Save Jimmy-Xu/275c98cdc7be327c9607 to your computer and use it in GitHub Desktop.
go get支持显示进度条
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/usr/local/Cellar/go/1.13.3/libexec/src/cmd/go 目录下只有下面的文件
alldocs.go go_unix_test.go init_test.go mkalldocs.sh script_test.go
go11.go go_windows_test.go internal note_test.go testdata
go_test.go help_test.go main.go proxy_test.go vendor_test.go
怎么改?
ps: go 13 , macos