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

print logs to stderr instead of stdout

also, don't print up-to-date status when the --silent flag was given

closes #68
This commit is contained in:
Andrey Nering
2017-09-30 14:56:35 -03:00
parent 14676dc3f8
commit abb19dfbf8
5 changed files with 29 additions and 21 deletions

View File

@@ -189,7 +189,7 @@ func (e *Executor) handleShVar(v Var) (string, error) {
result := strings.TrimSuffix(stdout.String(), "\n")
e.dynamicCache[v.Sh] = result
e.verbosePrintfln(`task: dynamic variable: '%s' result: '%s'`, v.Sh, result)
e.verboseErrf(`task: dynamic variable: '%s' result: '%s'`, v.Sh, result)
return result, nil
}