1
0
mirror of https://github.com/go-task/task.git synced 2025-12-24 00:21:41 +02:00
Commit Graph

5 Commits

Author SHA1 Message Date
Valentin Maerten
7f4d5a5e4a feat(interactive): add just-in-time prompting for sequential task calls 2025-12-14 16:54:46 +01:00
Valentin Maerten
bd166ff271 fix(interactive): collect vars before checking visited to handle duplicate task calls 2025-12-13 13:16:37 +01:00
Valentin Maerten
00f7788c35 wip: add synchronized output to prevent prompt interleaving
- Add SyncWriter to synchronize stdout/stderr writes with prompts
- Add promptMutex to serialize interactive prompts
- Keep rawStdout/rawStderr for BubbleTea to avoid deadlock
- Update test Taskfile with nested deps scenario
2025-12-13 12:28:10 +01:00
Valentin Maerten
419442bba6 refactor(interactive): move interactive setting to taskrc 2025-12-13 12:01:36 +01:00
Valentin Maerten
538699e54f feat(vars): add interactive prompting for required variables
Add support for interactive variable prompting using Bubble Tea.
Variables can be marked as `interactive: true` in the requires section,
and users will be prompted to enter values for missing variables when
running in a TTY.

Features:
- New `interactive` field on required variables
- Bubble Tea-based text input and select prompts
- --no-tty flag to disable interactive prompts
- Automatic skip when variable is already set
2025-12-13 11:05:18 +01:00