Valentin Maerten f09f31c6d5 fix: skip prompting for vars when task if condition fails
Move the prompt for required variables AFTER the if condition check.
This avoids asking the user for input when the task won't run anyway.

The order in RunTask() is now:
1. FastCompiledTask
2. Check required vars early (non-interactive mode only)
3. CompiledTask (resolve dynamic vars)
4. Check if condition → exit early if false
5. Prompt for missing vars (only if task will run)
6. Validate required vars
2026-01-26 09:21:09 -03:00
2026-01-24 20:48:51 -03:00
2026-01-24 20:48:51 -03:00

Task

Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.

Installation | Getting Started | Docs | Twitter | Bluesky | Mastodon | Discord

Gold Sponsors

Description
A task runner / simpler Make alternative written in Go
Readme MIT 47 MiB
Languages
Go 88%
Shell 5.1%
TypeScript 2.9%
Vue 1.8%
PowerShell 1.5%
Other 0.6%