1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

Task: Add interactive parameter

Add the task parameter "interactive" to force interleaved output in order
to make interactive CLI apps work.

Feature request in #217

TODO:
* Update documentation

Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
This commit is contained in:
Marcello Sylvester Bauer
2021-09-01 18:28:38 +02:00
parent 50e5813222
commit 2dc181c75e
3 changed files with 10 additions and 0 deletions

View File

@ -56,6 +56,7 @@ func (e *Executor) compiledTask(call taskfile.Call, evaluateShVars bool) (*taskf
Vars: nil,
Env: nil,
Silent: origTask.Silent,
Interactive: origTask.Interactive,
Method: r.Replace(origTask.Method),
Prefix: r.Replace(origTask.Prefix),
IgnoreError: origTask.IgnoreError,