MCPcopy Create free account
hub / github.com/cli/cli / run

Function run

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

Source from the content-addressed store, hash-verified

232}
233
234func run(args ...string) error {
235 exe, err := safeexec.LookPath(args[0])
236 if err != nil {
237 return err
238 }
239 announce(args...)
240 cmd := exec.Command(exe, args[1:]...)
241 cmd.Stdout = os.Stdout
242 cmd.Stderr = os.Stderr
243 return cmd.Run()
244}
245
246func cmdOutput(args ...string) (string, error) {
247 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