MCPcopy Create free account
hub / github.com/ahmedakef/goshell / executeCommands

Function executeCommands

scripts/fetcher.go:66–78  ·  view source on GitHub ↗
(commands [][]string)

Source from the content-addressed store, hash-verified

64}
65
66func executeCommands(commands [][]string) {
67 for _, command := range commands {
68 cmd := exec.Command(command[0], command[1:]...)
69 fmt.Println("Running command", cmd.String())
70 var stderr bytes.Buffer
71 cmd.Stderr = &stderr
72 err := cmd.Run()
73 if err != nil {
74 fmt.Println("Stderr:", stderr.String())
75 fmt.Println(err)
76 }
77 }
78}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected