MCPcopy
hub / github.com/github/git-sizer / WithStdout

Function WithStdout

internal/pipe/pipeline.go:82–86  ·  view source on GitHub ↗

WithStdout assigns stdout to the last command in the pipeline.

(stdout io.Writer)

Source from the content-addressed store, hash-verified

80
81// WithStdout assigns stdout to the last command in the pipeline.
82func WithStdout(stdout io.Writer) Option {
83 return func(p *Pipeline) {
84 p.stdout = nopWriteCloser{stdout}
85 }
86}
87
88// WithStdoutCloser assigns stdout to the last command in the
89// pipeline, and closes stdout when it's done.

Callers 5

TestPipelineInterruptedFunction · 0.92
TestPipelineCanceledFunction · 0.92

Calls

no outgoing calls

Tested by 5

TestPipelineInterruptedFunction · 0.74
TestPipelineCanceledFunction · 0.74