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
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
2b54b04cfc
fix: dynamic variable output in verbose mode ( #1921 )
...
Co-authored-by: Matthew Bowman <mbowman@nvidia.com >
2024-12-07 16:05:53 +01:00
390220ec9c
fix: typos in docs, changelog, testdata, comments ( #1910 )
2024-11-07 13:25:59 -03:00
148b090d8e
fix: bug where non-nil, empty dynamic variables are returned as an empty interface ( #1904 )
2024-11-04 13:30:39 +00:00
e078261f12
fix: special variables are defined with dotenv at task level ( #1810 )
2024-10-09 03:14:23 -04:00
045d054a5f
feat: add ALIAS
special var ( #1764 )
2024-08-24 21:50:45 -03:00
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
252d549e3f
feat: task executable variable ( #1624 )
2024-05-15 21:50:18 -03:00
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
c0a0faf3d3
fix: variables passed to included taskfile ( #1533 )
2024-03-10 17:28:04 +00:00
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
aff1f5316d
feat: taskfile special variable ( #1523 )
2024-03-03 22:45:23 +00:00
1ef5cf71d0
feat: pass ast.Call by reference
2024-02-22 14:58:24 -06:00
3ff8fdbc0a
feat: add ROOT_TASKFILE special variable ( #1469 )
2024-01-25 21:11:08 -03:00
25b1966506
feat: resolve variables in vars declarations too
2024-01-11 14:44:04 +00:00
1f3fca50b3
feat: add ability to call task with variable by reference
2024-01-11 14:44:04 +00:00
c655d90ab3
feat: add json and yaml variable constructors
2024-01-11 14:44:04 +00:00
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
2b67d05b9d
feat: remove v2 support ( #1447 )
...
* feat: remove v2 support
* docs: update v2 schema docs
2023-12-29 20:26:02 +00:00
08265ed1d7
Allow vars in dotenv paths, including environment variables
...
Closes #453
Closes #434
Ref #433
Co-authored-by: Andrey Nering <andrey@nering.com.br >
2021-06-05 16:00:19 -03:00
bf6d0c0a74
Improve performance of --list
and --summary
flags
...
Closes #332
2021-01-12 12:03:04 -03:00
59d2733b88
Make dynamic variables run on the right directory
...
It was always running in the main Taskfile dir, even when the variable was
declared in an included taskfile in another directory or when task had a
custom dir.
Closes #384
2021-01-07 11:26:11 -03:00
2d52485d7b
Watch: Clear vars cache between runs
...
Closes #365
2021-01-05 11:19:34 -03:00
47dd9b5a03
Move args and taskfile packages to root directory
2020-08-19 10:59:58 +02:00
fb72b46a3c
github.com/go-task/task/v2 -> github.com/go-task/task/v3
2020-08-16 15:48:19 -03:00
6ed30f1add
Refactor variables: Keep order of declaration
...
This shouldn't have any behavior changes for now. This is a code
refactor that should allow us to do further improvements on how
variables are handled, specially regarding respecting the declaration
order in Taskfiles, which should make it easier for the users.
Initial work on #218
2020-04-05 11:16:14 -03:00
3cbc89769d
Re-write import paths to v2
2018-11-04 21:23:35 -02:00
87a200e42c
Extract some functionality to its own packages
...
Like variable and template handling, and logging
2018-02-17 16:12:41 -02:00