Piotr Stawarski
cb07189bab
Fix: Cannot use splitArgs and splitLines in for-loops ( #1823 )
...
* Update variables.go
Probably solves https://github.com/go-task/task/issues/1822
* add type casting
* reorder to look better
* add suport for []int functions (until, untilStep)
2024-09-20 18:05:19 +01:00
Pete Davison
e4b4d04abd
fix: matrix loops should be deterministic ( #1784 )
2024-09-02 22:43:54 +01:00
Pete Davison
281d259e6e
feat: loop over a matrix ( #1767 )
2024-09-02 20:29:00 +01: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
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
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
e9448bd4be
fix: advanced import operates on including file instead of included file
2024-04-09 12:37:18 +01:00
Pete Davison
4774273c98
fix: merge conflict
2024-03-10 19:09:27 +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
1ef5cf71d0
feat: pass ast.Call by reference
2024-02-22 14:58:24 -06:00
Pete Davison
dbc120c970
feat: support refs in dependencies
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
d87e7981fb
fix: don't report errors when fast compiling
2024-01-11 14:44:04 +00: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
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
7feceeae87
fix: handle errors when sh is used in Taskfiles with the any variables experiment enabled
2023-12-20 19:55:25 -06:00
Pete Davison
1eeb7d5cf9
fix: dynamic vars break with for because of fast-compiled tasks
2023-12-20 19:55:25 -06:00
Pete Davison
4a0414274f
feat: for supports variables and lists of any type
2023-12-20 19:55:25 -06:00
Pete Davison
5516ac1a00
feat: change Var.Value from string to an any type
2023-12-20 19:55:25 -06: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
Andrey Nering
adfb96b637
feat: add ability to set watch: true
in Taskfile ( #1361 )
2023-10-07 18:06:43 -03:00
Pete Davison
d447cc3f19
chore: make sources paths relative
2023-07-24 22:05:40 -03: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
Ben Coleman
307f39cee3
feat: add ability to specify which vars are required ( #1204 )
2023-06-29 22:13:41 -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
Mads H. Danquah
9a406f5998
fix: ensure that calls to other tasks can be silenced ( #680 )
2023-05-22 22:09:29 -03:00
Pete Davison
f22389a824
feat: implement task sorting with --sort
flag ( #1105 )
...
* refactor: move deepcopy into its own package
* feat: add generic orderedmap implementation
* refactor: implement tasks with orderedmap
* feat: implement sort flag for all task outputs
* refactor: implement vars with orderedmap
* chore: docs
* fix: linting issues
* fix: non deterministic behavior in tests
2023-04-06 12:07:57 +01:00
Pete Davison
e40d2eec9e
feat: add task location data to json output ( #1056 )
...
* feat: add task location data to json output
* feat: add root taskfile location to --json output
2023-03-17 12:34:06 +00:00
Pete Davison
0838d48ee3
refactor: decouple fingerprinting from executor ( #1039 )
2023-03-10 15:27:30 -03:00
Pete Davison
8b72c86ba5
feat: use semver package for taskfile schema version
2023-02-10 18:14:38 +00:00
Pete Davison
1c1be683ab
feat: set and shopt directives ( #929 )
...
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2023-01-14 16:41:56 -03:00
Lea Anthony
aa6c7e4b94
Add support for 'platforms' in both task and command ( #980 )
2023-01-06 21:38:35 -03:00
Pete Davison
99d7338c29
feat: add task-level dotenv support ( #904 )
2022-12-05 21:25:16 -03:00
Pete Davison
376a6182eb
feat: aliases
...
feat: add aliases to --list and --list-all flags
feat: add aliases to --summary
feat: enable aliases for included tasks
tests: added alias unit tests
2022-10-07 11:11:14 +00:00
Pete Davison
6f8f1f1409
feat(task): tasks can be internal (not accessible from cli)
2022-08-16 17:06:25 +00:00
Andrey Nering
c4e10ef0aa
Refactor: Add SmartJoin to handle IsAbs automatically
2022-08-06 18:19:07 -03:00
Andrey Nering
de09843467
Improvements + CHANGELOG for #677
2022-03-19 18:41:03 -03:00
Jacob McCollum
69e9effc88
initial pass at deferred commands
2022-01-02 15:55:43 -05:00
Andrey Nering
8b38ddfcd9
Merge pull request #563 from system-transparency/feature/interactive
...
Task: Add interactive parameter
2021-09-26 21:40:50 -03:00
masaushi
1de4b38766
fix segmentation fault on nil slice element
2021-09-15 00:01:33 +09:00
Marcello Sylvester Bauer
2dc181c75e
Task: Add interactive parameter
...
Add the task parameter "interactive" to force interleaved output in order
to make interactive CLI apps work.
Feature request in #217
TODO:
* Update documentation
Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
2021-09-03 10:31:24 +02:00
Ross Hammermeister
97c85e39c3
Only run task once for #53
2021-07-31 19:36:40 -03:00
Andrey Nering
bf6d0c0a74
Improve performance of --list
and --summary
flags
...
Closes #332
2021-01-12 12:03:04 -03:00
Andrey Nering
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