1
0
mirror of https://github.com/go-task/task.git synced 2025-06-23 00:38:19 +02:00

docs: package api docs (#2169)

* refactor: pass Node into Read method instead of Reader type

* docs: add "key packages" and "Reading Taskfiles" sections to package doc
This commit is contained in:
Pete Davison
2025-04-19 11:58:31 +01:00
committed by GitHub
parent 8885d9e4f7
commit 04df108fb5
3 changed files with 144 additions and 13 deletions

View File

@ -71,7 +71,6 @@ func (e *Executor) readTaskfile(node taskfile.Node) error {
return e.Logger.Prompt(logger.Yellow, s, "n", "y", "yes")
}
reader := taskfile.NewReader(
node,
taskfile.WithInsecure(e.Insecure),
taskfile.WithDownload(e.Download),
taskfile.WithOffline(e.Offline),
@ -80,7 +79,7 @@ func (e *Executor) readTaskfile(node taskfile.Node) error {
taskfile.WithDebugFunc(debugFunc),
taskfile.WithPromptFunc(promptFunc),
)
graph, err := reader.Read()
graph, err := reader.Read(node)
if err != nil {
return err
}