1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

Improvements and CHANGELOG for #651

This commit is contained in:
Andrey Nering
2022-02-19 19:31:27 -03:00
parent cfb665310e
commit b323531dd5
8 changed files with 103 additions and 100 deletions

View File

@@ -52,7 +52,7 @@ type Executor struct {
Logger *logger.Logger
Compiler compiler.Compiler
Output output.Output
OutputStyle output.Style
OutputStyle taskfile.Output
taskvars *taskfile.Vars
@@ -211,10 +211,9 @@ func (e *Executor) Setup() error {
if !e.OutputStyle.IsSet() {
e.OutputStyle = e.Taskfile.Output
}
if o, err := e.OutputStyle.Build(); err != nil {
e.Output, err = output.BuildFor(&e.OutputStyle)
if err != nil {
return err
} else {
e.Output = o
}
if e.Taskfile.Method == "" {