Merge branch 'master' into master

This commit is contained in:
Andrey Nering
2018-08-05 11:32:07 -03:00
committed by GitHub
6 changed files with 44 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ type Executor struct {
Watch bool
Verbose bool
Silent bool
Dry bool
Context context.Context
@@ -211,6 +212,10 @@ func (e *Executor) runCommand(ctx context.Context, t *taskfile.Task, call taskfi
e.Logger.Errf(cmd.Cmd)
}
if e.Dry {
return nil
}
stdOut := e.Output.WrapWriter(e.Stdout, t.Prefix)
stdErr := e.Output.WrapWriter(e.Stderr, t.Prefix)
defer stdOut.Close()