diff --git a/cli/cmd.go b/cli/cmd.go index c766559..7cc428f 100644 --- a/cli/cmd.go +++ b/cli/cmd.go @@ -1,10 +1,8 @@ package cli import ( - "io/ioutil" "os" "os/exec" - "path/filepath" "github.com/nomad-software/vend/output" ) @@ -58,11 +56,3 @@ func buildEnv() []string { env = append(env, "GO111MODULE=on") return env } - -// ReadModFile runs a builtin go command to generate an officially formatted report file. -func ReadModFile(vendorDir string) string { - bytes, err := ioutil.ReadFile(filepath.Join(vendorDir, "modules.txt")) - output.OnError(err, "Error reading modules.txt") - - return string(bytes) -}