1
0
mirror of https://github.com/go-task/task.git synced 2025-05-17 22:32:40 +02:00

245 Commits

Author SHA1 Message Date
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 f0414f162d8e34e7ca9da1c750fa8202aa6f5451.
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
Valentin Maerten
c995fe6d11
fix(checker): use only one checker at the same time to improve perf (#2031)
* fix(checker): use only one checker at the same time to improve performance

* refactor

* fix test
2025-02-08 17:34:04 +01:00
Valentin Maerten
80f96d67da
fix: requires allowed values works with dynamic var (#2033) 2025-02-08 17:29:36 +01:00
Pete Davison
b5b1524d3a
feat: variable inheritance tests (#2038) 2025-02-05 19:51:52 +00:00
rohm1
24a830e384
fix: forward env to RunCommand when evaluating sh vars (#1869)
* forward env to RunCommand when evaluating sh vars. fixes #1742

* feat: added tests

* fix: test

---------

Co-authored-by: Pete Davison <pd93.uk@outlook.com>
2025-01-02 20:07:25 +00:00
Niklas Rousset
c1e14c461b
feat: make CHECKSUM and TIMESTAMP vars available in cmds commands (#1872) 2024-12-31 16:04:42 +01:00
Valentin Maerten
da40aabcc7
fix: task level vars are not ignored in requires (#1960)
Co-authored-by: MOKEKO <Anthurium.1605@gmail.com>
2024-12-30 19:11:27 +01:00
Valentin Maerten
9d8c4ba7e6
feat: add TASK_DIR special variable (#1961)
Co-authored-by: Pete Davison <pd93.uk@outlook.com>
2024-12-30 11:45:25 +01:00
Valentin Maerten
d64df3f9d7
fix: evaluate requires before compiled task (#1962) 2024-12-30 10:15:17 +01:00
Valentin Maerten
5f1d46c770
feat: can exclude task from being included (#1859) 2024-12-30 10:09:28 +01:00
Danilo Bürger
4595c1e32a
feat: add silent for defer (#1879)
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
2024-12-07 16:16:27 +01:00
Oleksandr Redko
390220ec9c
fix: typos in docs, changelog, testdata, comments (#1910) 2024-11-07 13:25:59 -03:00
Matheus Mina
5581954fb1
feat: allow providing single or multi prompts (#1866)
* Add new type to handle single or multi prompts

* update docs

* apply review
2024-10-29 13:37:03 +00:00
Valentin Maerten
a35910429c
feat: option to ensure variable is within the list of values (#1827) 2024-10-18 18:16:57 +02:00
Paulo Bittencourt
8dd3f4b119
refactor: re-organize node loading code to make it easier to follow (#1771) 2024-10-18 18:13:25 +02:00
Paulo Bittencourt
a72e70b026
fix: inconsistent current directory resolution depending on include order (#1757) 2024-10-05 21:40:22 -03:00
Paulo Bittencourt
8d0f0b049c
fix: Print dotenv file path when there is an error reading file (#1842) 2024-09-29 16:03:48 -04:00
Valentin Maerten
5eaf0b2dcd
fix: interpolate dynamic vars in defer (#1818) 2024-09-19 08:22:39 -04:00
Valentin Maerten
1bf850592c
fix: interpolate vars in defer (#1814)
Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com>
2024-09-18 22:17:53 -03:00
Valentin Maerten
0e2c9cc88f
fix: include flatten with a default task (#1778) 2024-09-06 10:44:28 -03:00
Pete Davison
281d259e6e
feat: loop over a matrix (#1767) 2024-09-02 20:29:00 +01:00
Valentin Maerten
ef3b853728
feat: add option to declare an included Taskfile as flatten (#1704) 2024-08-26 17:17:39 -04:00
Daniel Story
045d054a5f
feat: add ALIAS special var (#1764) 2024-08-24 21:50:45 -03:00
Andrey Nering
b259edeb65
feat(defer): expose EXIT_CODE special variable to defer: (#1762)
Co-authored-by: Dor Sahar <dorsahar@icloud.com>
2024-08-14 22:53:14 -03:00
Pete Davison
5e9851f42f
Update minimum go version (#1758)
* feat: update minimum version to 1.22

* refactor: use int range iterator

* refactor: loop variables

* refactor: replace slicesext.FirstNonZero with cmp.Or

* refactor: use slices.Concat instead of append

* fix: unused param

* fix: linting
2024-08-14 08:37:05 -05:00
Valentin Maerten
4b6c79aca5
feat: experiment taskfile envs take precedence over os envs (#1633)
* feat: experiment taskfile envs take precedence over os envs

* fix test

* fix typo

Co-authored-by: Andrey Nering <andrey@nering.com.br>

* docs: add p about default

---------

Co-authored-by: Andrey Nering <andrey@nering.com.br>
2024-07-16 23:44:34 +01:00
Valentin Maerten
375106c988
fix: list-task with multiline desc (#1656)
* fix: list-task with multiline desc

* feat: display all lines aligned  in a table

* fix: display experiments

* use ladicle/tabwrite to handle color

* delete empty lines

Co-authored-by: Andrey Nering <andrey@nering.com.br>

* remove all /n and replace by space

---------

Co-authored-by: Andrey Nering <andrey@nering.com.br>
2024-06-28 17:59:46 +01:00
Pete Davison
3aaa3223a0
fix: run once in shared dependencies (#1655)
* fix: run once in shared dependencies

* feat: add test
2024-06-28 16:50:02 +01:00
Pete Davison
a3fce1c302
feat: variable references (#1654)
* feat: add references to the base code instead of the maps experiment

* feat: add template functions to ref resolver

* feat: tests

* docs: variable references

* feat: remove json and yaml keys from map variable experiment

* chore: typo
2024-05-16 16:20:59 +01:00
Pete Davison
725f929778
fix: included variable merging (#1649) 2024-05-12 20:32:09 +01:00
Pete Davison
f5c7472f64
fix: nil schema panic (#1648) 2024-05-12 20:25:54 +01:00
Valentin Maerten
3397f2855f
fix: handle int and float env variable by converting them to string (#1641) 2024-05-09 11:14:38 -03:00
Valentin Maerten
c81dbda157
feat(remote): replace env variable in include remote URL (#1610)
* feat(remote): replace env variable in include remote URL

* use templating system instead of os.ExpandEnv

* lint
2024-04-29 22:27:30 +01:00
Pete Davison
630e58767b
feat: ability to resolve refs using templating syntax (#1612)
* feat: resolve references using templating syntax

* refactor: moved when references are resolved to one place

* fix: linter

* docs: update map variables doc
2024-04-24 19:47:24 +00:00
Pete Davison
f19c520f23 feat: add support for multiple includes on a graph edge 2024-04-24 18:33:56 +01:00
Pete Davison
6854b4c300 fix: include_with_vars test included the same file multiple times 2024-04-09 12:37:18 +01:00
Pete Davison
6ecfb634d2 fix: includes interpolation test 2024-04-09 12:37:18 +01:00
Pete Davison
0a027df50d feat: better error handling for duplicate edges and fixed tests 2024-04-09 12:37:18 +01:00
Pete Davison
c0a0faf3d3
fix: variables passed to included taskfile (#1533) 2024-03-10 17:28:04 +00:00
Pete Davison
f06f48e225
feat: looping over dependencies (#1541)
* feat: support for loops in deps

* chore: tests

* docs: looping over deps
2024-03-10 17:21:50 +00:00