mirror of
https://github.com/go-task/task.git
synced 2026-06-23 20:55:52 +00:00
refactor: merge Setup into NewExecutor
This commit is contained in:
@@ -152,17 +152,12 @@ func run() error {
|
||||
return err
|
||||
}
|
||||
|
||||
tf, err := graph.Merge()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
executor := task.NewExecutor(tf,
|
||||
executor, err := task.NewExecutor(graph,
|
||||
flags.WithFlags(),
|
||||
task.WithDir(node.Dir()),
|
||||
task.WithTempDir(tempDir),
|
||||
)
|
||||
if err := executor.Setup(); err != nil {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user