1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

Add --color=false flag to disable colored output

This commit is contained in:
Andrey Nering
2019-07-07 14:13:53 -03:00
parent fb23ba9878
commit 0e575e9c25
3 changed files with 12 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ type Executor struct {
Silent bool
Dry bool
Summary bool
Color bool
Stdin io.Reader
Stdout io.Writer
@@ -108,6 +109,7 @@ func (e *Executor) Setup() error {
Stdout: e.Stdout,
Stderr: e.Stderr,
Verbose: e.Verbose,
Color: e.Color,
}
v, err := strconv.ParseFloat(e.Taskfile.Version, 64)