mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +00:00
Simplifying goGet function
This commit is contained in:
parent
b4ab6634be
commit
31a1f21b87
1 changed files with 1 additions and 2 deletions
|
@ -116,8 +116,7 @@ type CurDir struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func goGet(mod string) error {
|
func goGet(mod string) error {
|
||||||
cmd := exec.Command("go", "get", mod)
|
return exec.Command("go", "get", mod).Run()
|
||||||
return cmd.Run()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func modInfoJSON(args ...string) []byte {
|
func modInfoJSON(args ...string) []byte {
|
||||||
|
|
Loading…
Add table
Reference in a new issue