1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

feat: better functional options for reader (#2148)

This commit is contained in:
Pete Davison
2025-04-01 14:51:25 +01:00
committed by GitHub
parent 1939f83ffe
commit cd81d94e18
5 changed files with 266 additions and 203 deletions

View File

@@ -72,13 +72,13 @@ func (e *Executor) readTaskfile(node taskfile.Node) error {
}
reader := taskfile.NewReader(
node,
taskfile.ReaderWithInsecure(e.Insecure),
taskfile.ReaderWithDownload(e.Download),
taskfile.ReaderWithOffline(e.Offline),
taskfile.ReaderWithTimeout(e.Timeout),
taskfile.ReaderWithTempDir(e.TempDir.Remote),
taskfile.ReaderWithDebugFunc(debugFunc),
taskfile.ReaderWithPromptFunc(promptFunc),
taskfile.WithInsecure(e.Insecure),
taskfile.WithDownload(e.Download),
taskfile.WithOffline(e.Offline),
taskfile.WithTimeout(e.Timeout),
taskfile.WithTempDir(e.TempDir.Remote),
taskfile.WithDebugFunc(debugFunc),
taskfile.WithPromptFunc(promptFunc),
)
graph, err := reader.Read()
if err != nil {