Oleksandr Redko
390220ec9c
fix: typos in docs, changelog, testdata, comments ( #1910 )
2024-11-07 13:25:59 -03: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
c5eea294aa
ci: fix flaky TestForDeps tests ( #1839 )
2024-10-05 21:25:12 -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
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
830b745112
feat(remote): global tempDir when the path is absolute ( #1661 )
...
* feat(remote): global tempDir is the path is absolute
* --wip-- [skip ci]
* fix lint
* rename checksum to fingerprint
* chore: Empty-Commit to trigger CI
* feat: add TASK_REMOTE_DIR
* handle relative path for TASK_REMOTE_DIR
* Remove unneedded extra blank lines
Co-authored-by: Andrey Nering <andrey@nering.com.br>
* add docs about TASK_REMOTE_DIR
---------
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2024-06-28 17:01:11 +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
8d138a5eea
feat: better yaml parsing and error handling ( #1619 )
2024-05-16 01:24:02 +00: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
Andrey Nering
bfc9d7847d
fix: add changelog + fix for booleans for #1641
2024-05-09 11:21:12 -03: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
f19c520f23
feat: add support for multiple includes on a graph edge
2024-04-24 18:33:56 +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
cbc19d35ea
feat: root remote taskfiles
2024-03-25 19:13:27 +00: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
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
1ef5cf71d0
feat: pass ast.Call by reference
2024-02-22 14:58:24 -06:00
Pete Davison
fa82051a06
fix: tests
2024-01-25 21:05:23 -03:00
Pete Davison
d2522a6d9d
fix: getSpecialVars
2024-01-11 14:00:30 +00:00
Pete Davison
42af0fc791
feat: invert call.Direct ( #1459 )
2024-01-10 21:32:49 -03:00
Pete Davison
247c2586c2
refactor: taskfile/ast package ( #1450 )
...
* refactor: ast package
* feat: read -> taskfile
* refactor: taskfile.Taskfile -> taskfile.Read
* refactor: move merge function back into taskfile package
* refactor: rename taskfile.go to read.go
2023-12-29 20:32:03 +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
de09e675c1
refactor: rename Var.Static to Var.Value
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
Juan Ignacio Donoso
05755f3a52
fix: templates on task descriptions ( #1343 )
2023-10-07 18:57:14 -03:00
Pete Davison
dc77286282
feat: unify prompts ( #1344 )
2023-10-07 21:55:43 +00:00
Reilly Brogan
1417f9f6cd
feat(checksum): replace md5 with xxh3 to improve performance ( #1325 )
2023-09-13 21:26:48 -03:00
Pete Davison
22ce67c5e5
feat: remote taskfiles (HTTP) ( #1152 )
...
* feat: remote taskfiles over http
* feat: allow insecure connections when --insecure flag is provided
* feat: better error handling for fetch errors
* fix: ensure cache directory always exists
* fix: setup logger before everything else
* feat: put remote taskfiles behind an experiment
* feat: --download and --offline flags for remote taskfiles
* feat: node.Read accepts a context
* feat: experiment docs
* chore: changelog
* chore: remove unused optional param from Node interface
* chore: tidy up and generalise NewNode function
* fix: use sha256 in remote checksum
* feat: --download by itself will not run a task
* feat: custom error if remote taskfiles experiment is not enabled
* refactor: BaseNode functional options and simplified FileNode
* fix: use hex encoding for checksum instead of b64
2023-09-12 22:42:54 +01: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
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