MCPcopy Create free account
hub / github.com/google/gapid / Capture

Method Capture

core/os/shell/command.go:80–84  ·  view source on GitHub ↗

Capture returns a copy of the Cmd with Stdout and Stderr set.

(stdout, stderr io.Writer)

Source from the content-addressed store, hash-verified

78
79// Capture returns a copy of the Cmd with Stdout and Stderr set.
80func (cmd Cmd) Capture(stdout, stderr io.Writer) Cmd {
81 cmd.Stdout = stdout
82 cmd.Stderr = stderr
83 return cmd
84}
85
86// Read returns a copy of the Cmd with Stdin set.
87func (cmd Cmd) Read(stdin io.Reader) Cmd {

Callers 1

CallMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected