MCPcopy
hub / github.com/go-task/task / WithTempDir

Function WithTempDir

taskfile/reader.go:145–147  ·  view source on GitHub ↗

WithTempDir sets the temporary directory that will be used by the [Reader]. By default, the reader uses [os.TempDir].

(tempDir string)

Source from the content-addressed store, hash-verified

143// WithTempDir sets the temporary directory that will be used by the [Reader].
144// By default, the reader uses [os.TempDir].
145func WithTempDir(tempDir string) ReaderOption {
146 return &tempDirOption{tempDir: tempDir}
147}
148
149type tempDirOption struct {
150 tempDir string

Callers 1

readTaskfileMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…