Skip to content
Myr

Simplifying goGet function

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Steve Francia · committed by Steve Francia · parent cf87fc4 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:cobra/cmd/init.go+1 added-2 removed
114 unmodified lines
115 Dir string116}117118func goGet(mod string) error {119 cmd := exec.Command("go", "get", mod)120 return cmd.Run()119 return exec.Command("go", "get", mod).Run()120}121122func modInfoJSON(args ...string) []byte {123 cmdArgs := append([]string{"list", "-json"}, args...)
5 unmodified lines