mirror of
https://github.com/go-task/task.git
synced 2025-06-25 00:47:04 +02:00
execext package: support context command
This commit is contained in:
@ -2,6 +2,7 @@ package task
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
@ -32,7 +33,7 @@ func handleDynamicVariableContent(value string) (string, error) {
|
||||
if result, ok := varCmds[value]; ok {
|
||||
return result, nil
|
||||
}
|
||||
cmd := execext.NewCommand(value[1:])
|
||||
cmd := execext.NewCommand(context.Background(), value[1:])
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stderr = os.Stderr
|
||||
b, err := cmd.Output()
|
||||
|
Reference in New Issue
Block a user