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:
2
task.go
2
task.go
@@ -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)
|
||||
|
Reference in New Issue
Block a user