mirror of
https://github.com/go-task/task.git
synced 2025-12-16 19:57:43 +01:00
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
13 KiB
13 KiB