1
0
mirror of https://github.com/go-task/task.git synced 2025-06-27 00:51:05 +02:00

allow custom Stdin, Stdout and Stderr while running as a lib

This commit is contained in:
Andrey Nering
2017-07-01 15:05:51 -03:00
parent 03fd5c84ec
commit 9ba44f3e6e
6 changed files with 46 additions and 17 deletions

View File

@ -36,7 +36,7 @@ func (e *Executor) handleDynamicVariableContent(value string) (string, error) {
Command: strings.TrimPrefix(value, "$"),
Dir: e.Dir,
Stdout: buff,
Stderr: os.Stderr,
Stderr: e.Stderr,
}
if err := execext.RunCommand(opts); err != nil {
return "", err