You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the above example if I run task task-1 --yes the task-2 will not ask for a prompt and run. However if I run task task-1 and answer y I still get prompted on task-2.
It would be great if there was a way to enable passing down the prompt response to sub-tasks. I am aware of work-arounds like instead of using - task: task-2 just use - task task-2 --yes but it doesn't seem very native and defeats the purpose of having the task: option in certain cases like this. If that is actually the suggested way to do it, that's fine.
Purposed solution
---
version: '3'tasks:
task-1:
prompt: Task 1?cmds:
- task: task-2propagate:
prompt: trueforce: true # Could also be used to propagate `--force` to sub-taskstask-2:
prompt: Task 2?cmd: echo hello
or allow the sub task to inherit the task calling it prompt reaponse
Current issue
With the above example if I run
task task-1 --yes
thetask-2
will not ask for a prompt and run. However if I runtask task-1
and answery
I still get prompted ontask-2
.It would be great if there was a way to enable passing down the prompt response to sub-tasks. I am aware of work-arounds like instead of using
- task: task-2
just use- task task-2 --yes
but it doesn't seem very native and defeats the purpose of having thetask:
option in certain cases like this. If that is actually the suggested way to do it, that's fine.Purposed solution
or allow the sub task to inherit the task calling it prompt reaponse
The text was updated successfully, but these errors were encountered: