Commit graph

284 commits

Author SHA1 Message Date
Valentin Maerten
14856e05dd test(override): move behaviour tests to golden fixtures 2026-11-01 16:06:08 +01:00
Valentin Maerten
54e8233ad8 feat(override): allow setting the output style in a Taskfile override 2026-11-01 16:06:08 +01:00
Valentin Maerten
337677d9cc feat(override): allow dotenv files in a Taskfile override 2026-11-01 16:06:08 +01:00
Valentin Maerten
ee2206827e fix(override): load the override when the entrypoint is a directory 2026-11-01 16:06:08 +01:00
Valentin Maerten
1c2bc7ae50 test(override): move integration tests to golden fixtures and drop redundant cases 2026-11-01 16:06:08 +01:00
Andrey Nering
847c43976e
refactor(watch): detect filesystem changes with fsbroker (#3064)
Assisted-by: Crush:prism
2026-11-01 13:11:34 +00:00
Valentin Maerten
4b5f9fe593
fix: resolve dynamic enum refs in interactive prompts (#3070) 2026-11-01 11:37:33 +01:00
Valentin Maerten
72680fa43c
feat(completion): unify shell completions behind task __complete (#2897) 2026-09-28 13:22:13 +02:00
Valentin Maerten
37898d9102
feat: command timeouts (#2898) 2026-08-11 22:09:25 +02:00
shaurya
85aca587b1
fix: accept []string and []int in matrix refs (#2956)
Co-authored-by: no-hup <shauryaj.finance@gmail.com>
2026-08-10 19:47:58 +02:00
星尘
2888867c94
feat: support excluding task namespaces (#2959) 2026-08-10 16:23:51 +02:00
Valentin Maerten
fc49c72647
refactor: centralize fingerprint method resolution in a Fingerprinter (#2924) 2026-08-10 16:12:18 +02:00
baaki
81a49a40c3
test: support checkout paths containing spaces in fixtures (#2923) 2026-07-19 22:13:18 +02:00
qingyingliu
b5861b1e27
fix: reject include without taskfile or dir (#2892)
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
2026-07-01 19:48:47 +00:00
Valentin Maerten
616433df75
feat: add use_gitignore option to exclude ignored files from sources/generates (#2773) 2026-06-29 15:39:33 +02:00
Valentin Maerten
6abbbcb265
feat: do not log secret variables (#2514) 2026-06-29 14:50:08 +02:00
Mateen Anjum
1b06da16f6
feat(templater): add absPath template function (#2788)
Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
2026-04-20 21:50:03 +02:00
Doug Richardson
f2e32beabd
fix: re-run task when generated files are missing with method: timestamp (#2716) 2026-04-11 21:42:50 -03:00
Valentin Maerten
8b6aca5722
feat(requires): support variable references in enum constraints (#2678) 2026-03-21 11:32:02 +01:00
Andrey Nering
4ddad9f9f7
Revert "fix: Call ReplaceVars() to resolve Ref's for imported global vars." (#2723) 2026-03-08 20:00:12 +00:00
Timothy Rule
2cdd7d3e43
fix: Call ReplaceVars() to resolve Ref's for imported global vars. (#2632) 2026-02-18 18:55:20 +01:00
Valentin Maerten
5a78808caa fix: evaluate task-level if condition after resolving dynamic variables 2026-01-26 09:21:09 -03:00
Timothy Rule
f6720760b4
fix(includes): propagate silent mode from included Taskfiles to tasks (#2640) 2026-01-25 16:33:52 +01:00
Timothy Rule
1bd5aa6bd5
fix: correct the value of ROOT_TASKFILE when no entrypoint (#2635) 2026-01-25 16:06:13 +01:00
Valentin Maerten
6dedcafd7d
feat(vars): add interactive prompting for required variables (#2579) 2026-01-22 21:20:45 +01:00
Valentin Maerten
9bc1efbc47
feat: add conditional execution for tasks and commands (#2564) 2026-01-21 23:05:40 +01:00
Valentin Maerten
618cd8956f
feat: wildcard match aliases (#2234) 2026-01-18 19:05:29 +01:00
Timothy Rule
d5f071c096
fix: print prefix when task is up-to-date and output-style is prefixed (#2633) 2026-01-18 08:42:18 -03:00
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
Andrey Nering
9b99866224
feat: add --failfast and failtest: true to control dependencies (#2525) 2025-12-07 17:23:08 -03:00
Valentin Maerten
4ab1958df1
feat(summary): add vars, env, and requires display (#2524) 2025-11-29 11:14:20 +01:00
Timothy Rule
386dcbc1a0
fix: adjust run: when_changed to work correctly with imported tasks (#2511) 2025-11-22 17:17:13 -03:00
Graham Dennis
94f82cbc5a
fix: make task failure errors include stack of running tasks (#2286)
Previously if a task was run as a dependency of another task,
the error message simply reported something like:

    exit status 1

It is desirable instead to name the root task and all child tasks in the tree
to the failing task.

After this PR, the error message will read:

    task: Failed to run task "root": task: Failed to run task "failing-task": exit status 1
2025-11-11 16:40:40 -03:00
Valentin Maerten
48039be12c
feat: improve fingerprint, run and output with wildcard (#1808) 2025-09-11 19:33:53 +02:00
Pete Davison
1c6d686356
chore: replace PPRemoveAbsolutePaths with generic fixture template data (#2265)
* chore: replace PPRemoveAbsolutePaths with generic fixture template data

* chore: update to goldie v2.7.1
2025-07-23 21:57:25 +01:00
Max Mizikar
fe2da74ea3
fix: don't suggest internal tasks (#2323)
Co-authored-by: Max Mizikar <maxmzkr@gmail.com>
2025-07-09 18:36:40 +01:00
Pete Davison
71eb8cdeea
feat: checksum pinning (#2223) 2025-05-24 14:00:02 +01:00
Aleksander Sh.
bb5b045293
feat: add task name to json output (#2256) 2025-05-20 21:37:57 +01:00
Pete Davison
c12ed49acb
chore: remove unused any2 testdata 2025-04-28 21:04:24 +00:00
Valentin Maerten
a33544101a
fix: fuzzy model was not instanciated (#2200)
* fix: fuzzy model was not instanciated

* add test

* add test
2025-04-28 00:00:54 +01:00
Pete Davison
8162b05f59
Revert "feat: process variables in include vars (#2113)"
This reverts commit f0414f162d.
2025-04-27 22:15:49 +00:00
Valentin Maerten
7169bf6434
fix: interpolate vars in defer (#2173) 2025-04-21 13:43:20 -03:00
Artem Sedykh
6f0f38b8d9
feat: support for loops with generates (#2151) 2025-04-05 23:55:43 +01:00
Pete Davison
f0414f162d
feat: process variables in include vars (#2113)
* feat: process variables in include vars

* feat: add test for include variables
2025-04-05 23:12:54 +01:00
Pete Davison
55790be6ad
feat: better versioning (#2131) 2025-04-05 23:09:27 +01:00
Pete Davison
4736bc2734
refactor: unify how executor tests are written (#2042)
* feat: use TaskTest for executor tests

* feat: more tests

* feat: separate tests for executing and formatting with new functional options that work for both test types

* feat: formatter tests

* refactor: more tests
2025-03-31 17:53:58 +01:00
Andrey Nering
0d5f2b5dab
feat(watcher): migrate to fsnotify (#2048) 2025-03-22 20:06:16 -03:00
Valentin Maerten
c23c46e326
fix: include with dynamic vars (#2092) 2025-02-26 17:49:05 +01:00
Pete Davison
d6234af49a
feat: allow variable references in a matrix (#2069) 2025-02-23 18:13:56 +00:00
Valentin Maerten
35ea4e0460
feat: display allowed values when vars are not provided (#2052) 2025-02-20 20:08:14 +01:00