mirror of
https://github.com/go-task/task.git
synced 2025-06-15 00:15:10 +02:00
Add CHANGELOG + Small improvement for #563
This commit is contained in:
9
task.go
9
task.go
@ -415,13 +415,12 @@ func (e *Executor) runCommand(ctx context.Context, t *taskfile.Task, call taskfi
|
||||
return nil
|
||||
}
|
||||
|
||||
stdOut := e.Output.WrapWriter(e.Stdout, t.Prefix)
|
||||
stdErr := e.Output.WrapWriter(e.Stderr, t.Prefix)
|
||||
|
||||
outputWrapper := e.Output
|
||||
if t.Interactive {
|
||||
stdOut = output.Interleaved{}.WrapWriter(e.Stdout, t.Prefix)
|
||||
stdErr = output.Interleaved{}.WrapWriter(e.Stderr, t.Prefix)
|
||||
outputWrapper = output.Interleaved{}
|
||||
}
|
||||
stdOut := outputWrapper.WrapWriter(e.Stdout, t.Prefix)
|
||||
stdErr := outputWrapper.WrapWriter(e.Stderr, t.Prefix)
|
||||
|
||||
defer func() {
|
||||
if _, ok := stdOut.(*os.File); !ok {
|
||||
|
Reference in New Issue
Block a user