MCPcopy
hub / github.com/vmware-tanzu/sonobuoy / InheritOutput

Function InheritOutput

pkg/image/exec/exec.go:79–82  ·  view source on GitHub ↗

InheritOutput sets cmd's output to write to the current process's stdout and stderr

(cmd Cmd)

Source from the content-addressed store, hash-verified

77
78// InheritOutput sets cmd's output to write to the current process's stdout and stderr
79func InheritOutput(cmd Cmd) {
80 cmd.SetStderr(os.Stderr)
81 cmd.SetStdout(os.Stdout)
82}
83
84// RunLoggingOutputOnFail runs the cmd, logging error output if Run returns an error
85func RunLoggingOutputOnFail(cmd Cmd, retries int) error {

Callers

nothing calls this directly

Calls 2

SetStderrMethod · 0.65
SetStdoutMethod · 0.65

Tested by

no test coverage detected