MCPcopy Index your code
hub / github.com/bitfield/script / Exec

Function Exec

script.go:66–68  ·  view source on GitHub ↗

Exec creates a pipe that runs cmdLine as an external command and produces its combined output (interleaving standard output and standard error). See [Pipe.Exec] for error handling details. Use [Pipe.Exec] to send the contents of an existing pipe to the command's standard input.

(cmdLine string)

Source from the content-addressed store, hash-verified

64// Use [Pipe.Exec] to send the contents of an existing pipe to the command's
65// standard input.
66func Exec(cmdLine string) *Pipe {
67 return NewPipe().Exec(cmdLine)
68}
69
70// File creates a pipe that reads from the file path.
71func File(path string) *Pipe {

Calls 2

NewPipeFunction · 0.85
ExecMethod · 0.80

Used in the wild real call sites across dependent graphs

searching dependent graphs…