Files
task/variables.go
Valentin Maerten f140d9a920 feat(if): add conditional execution for tasks and commands
Add `if` field to tasks and commands that allows conditional execution
based on a shell command exit code. When the condition returns non-zero,
the task/command is silently skipped (with verbose logging).

- Task-level: skip entire task if condition fails
- Command-level: skip individual command if condition fails
- Supports template variables in conditions
- Works with for loops (condition evaluated per iteration)
- Works with deferred commands
2025-12-08 22:10:07 +01:00

13 KiB