mirror of
https://github.com/go-task/task.git
synced 2026-02-24 20:20:30 +01:00
e05c9f7793ed47f8864f8732cd65d809a40e1717
In scoped mode, CLI vars (e.g., `task foo VAR=value`) now correctly
override task-level vars. This is achieved by:
1. Adding a `CLIVars` field to the Compiler struct
2. Storing CLI globals in this field after parsing
3. Applying CLI vars last in scoped mode to ensure they override everything
The order of variable resolution in scoped mode is now:
1. OS env → {{.env.XXX}}
2. Root taskfile env → {{.env.XXX}}
3. Root taskfile vars → {{.VAR}}
4. Include taskfile env/vars (if applicable)
5. IncludeVars (vars passed via includes: section)
6. Task-level vars
7. CLI vars (highest priority)
Legacy mode behavior is unchanged.
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
|
|
|
Languages
Go
88%
Shell
5.1%
TypeScript
2.9%
Vue
1.8%
PowerShell
1.5%
Other
0.6%