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

execext package: support context command

This commit is contained in:
Andrey Nering
2017-04-12 20:32:56 -03:00
parent 947b3de0c4
commit 822f7f83ee
5 changed files with 16 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
package task
import (
"context"
"fmt"
"log"
"os"
@@ -189,7 +190,7 @@ func (t *Task) runCommand(i int) error {
if err != nil {
return err
}
cmd := execext.NewCommand(c)
cmd := execext.NewCommand(context.Background(), c)
if dir != "" {
cmd.Dir = dir
}