mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
9b95e758f4f1fb2021721a939da4af738835e3a8
When using `task FOO=bar` with a Taskfile containing
`FOO: '{{.FOO | default "foo"}}'`, the CLI value was being
overwritten by the Taskfile default.
Split the variable merging into two steps:
1. Merge CLI variables (FOO=bar) first so they override Taskfile vars
2. ReverseMerge special variables (CLI_ARGS, CLI_FORCE, etc.) so
they're available for templating in Taskfile vars
Fixes regression introduced in #2403.
Co-authored-by: Timothy Rule <timothy.rule@gmail.com>
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
Languages
Go
84%
Vue
4.9%
Shell
4.7%
TypeScript
4.4%
PowerShell
1.4%
Other
0.5%