Valentin Maerten 9b95e758f4 fix: cli variables should take priority over aaskfile defaults (#2589)
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>
2025-12-18 17:50:00 -03:00
2025-09-23 22:34:43 +00:00
2025-05-01 18:43:43 +01:00
2025-12-18 17:42:03 +01:00
2025-12-18 17:29:29 +01:00
2025-12-18 17:41:54 +01:00
2025-04-19 12:55:22 +01:00
2025-12-18 17:29:29 +01:00
2024-09-02 19:21:53 +00:00
2024-08-14 08:37:05 -05:00
2025-09-11 10:26:59 +01:00
2017-02-28 09:15:25 -03:00
2025-11-19 10:02:58 -03:00
2025-01-18 10:11:00 -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

Languages
Go 84%
Vue 4.9%
Shell 4.7%
TypeScript 4.4%
PowerShell 1.4%
Other 0.5%