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
Pete Davison
08a888dc8a
feat: parse templates in collection-type variables ( #1526 )
...
* refactor: replacer
* feat: move traverser to deepcopy package
* feat: nested map variable templating
* refactor: ReplaceVar function
* feat: test cases
* fix: TraverseStringsFunc copy value instead of pointer
2024-03-10 17:11:07 +00:00
Pete Davison
3c05c9c6e1
fix: taskfile directory ( #1530 )
...
* fix: taskfile directory
* tests: add tests for special vars when running from a subdirectory
2024-03-04 11:34:44 +00:00
Pete Davison
38a06dad8e
feat: error when multiple wildcard matches are found
2024-02-22 14:58:24 -06:00
Pete Davison
df251de33e
feat: tests for wildcard matching
2024-02-22 14:58:24 -06:00
Pete Davison
9a3d2bc3aa
feat: wildcard matching of task names
2024-02-22 14:58:24 -06:00
Pete Davison
94aaea390f
feat: merge template func should support variadic list of maps ( #1464 )
2024-01-11 16:00:52 +00:00
Pete Davison
dbc120c970
feat: support refs in dependencies
2024-01-11 14:44:04 +00:00
Pete Davison
25b1966506
feat: resolve variables in vars declarations too
2024-01-11 14:44:04 +00:00
Pete Davison
1f3fca50b3
feat: add ability to call task with variable by reference
2024-01-11 14:44:04 +00:00
Pete Davison
c655d90ab3
feat: add json and yaml variable constructors
2024-01-11 14:44:04 +00:00
Pete Davison
2ccf80713d
feat: add sh and map (value) support
2024-01-11 14:44:04 +00:00
Pete Davison
f6a24fe925
feat: added basic merge template function ( #1438 )
2024-01-11 14:29:14 +00:00
Pete Davison
d2522a6d9d
fix: getSpecialVars
2024-01-11 14:00:30 +00:00
Pete Davison
2b67d05b9d
feat: remove v2 support ( #1447 )
...
* feat: remove v2 support
* docs: update v2 schema docs
2023-12-29 20:26:02 +00:00
Pete Davison
b592648d55
feat: support looping over map variables ( #1436 )
...
* feat: support looping over map variables
* feat: add .KEY variable
2023-12-21 15:43:56 +00:00
Pete Davison
77aaf996a1
feat: testdata
2023-12-20 19:55:25 -06:00
Pete Davison
ec35d43677
feat: support negative globs ( #1324 )
...
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2023-11-29 22:38:12 -03:00
Andrey Nering
b681ef9868
fix(platforms): do not run dynamic vars for other platforms ( #1377 )
2023-10-22 00:42:26 +00:00
Andrey Nering
5168e54af7
chore: add changelog entry for #1343
2023-10-07 18:59:20 -03:00
Juan Ignacio Donoso
05755f3a52
fix: templates on task descriptions ( #1343 )
2023-10-07 18:57:14 -03:00
Andrey Nering
e96712b020
fix: make sure USER_WORKING_DIR works corrently with includes ( #1309 )
...
Closes #1046
Closes #1205
Closes #1250
Closes #1293
Closes #1274
Closes #1309
Closes #1312
Co-authored-by: Marcus Spading <ms@fragmentum.net>
2023-08-26 21:06:50 +00:00
Pete Davison
6be3ff6141
chore: sources instead of source
2023-07-24 22:05:40 -03:00
Pete Davison
7ff1b1795e
feat: for
2023-07-24 22:05:40 -03:00
Pete Davison
6059ce2ac4
fix: exit codes for indirect tasks
2023-07-24 21:13:37 -03:00
Hudson Clark
8a0689328b
fix: propagate include vars in multi-level includes ( #1256 )
2023-07-08 11:42:38 -03:00
Pete Davison
5fdaa9aa36
feat: implement gentle force experiment draft ( #1216 )
...
* feat: implement gentle force experiment draft
* docs: changelog
2023-06-18 02:32:18 +01:00
Tim De Pauw
e2c1b3b931
feat: add support for single cmd task syntax ( #1131 )
2023-06-10 22:08:28 -03:00
Andrey Nering
44aaec86a1
chore: improvements on #1163 + changelog entry
2023-06-03 22:33:22 -03:00
Max Cheetham
f815ce2901
feat(prompts): add ability for tasks to prompt user pre execution ( #1163 )
2023-06-03 22:33:00 -03:00