MCPcopy Create free account
hub / github.com/go-task/task / WithTempDir

Function WithTempDir

executor.go:157–159  ·  view source on GitHub ↗

WithTempDir sets the temporary directory that will be used by [Executor] for storing temporary files like checksums and cached remote files. By default, the temporary directory is set to the user's temporary directory.

(tempDir TempDir)

Source from the content-addressed store, hash-verified

155// storing temporary files like checksums and cached remote files. By default,
156// the temporary directory is set to the user's temporary directory.
157func WithTempDir(tempDir TempDir) ExecutorOption {
158 return &tempDirOption{tempDir}
159}
160
161type tempDirOption struct {
162 tempDir TempDir

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…