1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +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

@@ -3,6 +3,7 @@ package main
import (
"fmt"
"log"
"os"
"github.com/go-task/task"
@@ -61,6 +62,10 @@ hello:
e := task.Executor{
Force: force,
Watch: watch,
Stdin: os.Stdin,
Stdout: os.Stdout,
Stderr: os.Stderr,
}
if err := e.ReadTaskfile(); err != nil {
log.Fatal(err)