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

Function WithDir

internal/pipe/pipeline.go:68–72  ·  view source on GitHub ↗

WithDir sets the default directory for running external commands.

(dir string)

Source from the content-addressed store, hash-verified

66
67// WithDir sets the default directory for running external commands.
68func WithDir(dir string) Option {
69 return func(p *Pipeline) {
70 p.env.Dir = dir
71 }
72}
73
74// WithStdin assigns stdin to the first command in the pipeline.
75func WithStdin(stdin io.Reader) Option {

Callers 2

TestPipelineDirFunction · 0.92
TestPipelineStderrFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestPipelineDirFunction · 0.74
TestPipelineStderrFunction · 0.74