MCPcopy Index your code
hub / github.com/cli/cli / run

Function run

script/build.go:208–218  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

206}
207
208func run(args ...string) error {
209 exe, err := safeexec.LookPath(args[0])
210 if err != nil {
211 return err
212 }
213 announce(args...)
214 cmd := exec.Command(exe, args[1:]...)
215 cmd.Stdout = os.Stdout
216 cmd.Stderr = os.Stderr
217 return cmd.Run()
218}
219
220func cmdOutput(args ...string) (string, error) {
221 exe, err := safeexec.LookPath(args[0])

Callers 1

build.goFile · 0.70

Calls 3

announceFunction · 0.85
CommandMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected