1
0
mirror of https://github.com/go-task/task.git synced 2025-06-19 00:27:36 +02:00
Commit Graph

26 Commits

Author SHA1 Message Date
daf39a04bf feat: iterators (#1798)
* feat: update to github.com/elliotchance/orderedmap/v3

* refactor: better sort package

* feat: iterators

* chore: remove unnecessary code
2025-02-22 16:22:03 +00:00
fd3532812e fix: orderedmap race condition (#1972) 2024-12-30 17:58:45 +00:00
ea85909e8b chore: update deps 2024-06-09 20:30:43 +00: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
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
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
8d0754af4d feat: go 1.21 2024-02-17 23:29:49 -03:00
1f3fca50b3 feat: add ability to call task with variable by reference 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
5516ac1a00 feat: change Var.Value from string to an any type 2023-12-20 19:55:25 -06:00
de09e675c1 refactor: rename Var.Static to Var.Value 2023-12-20 19:55:25 -06:00
ec35d43677 feat: support negative globs (#1324)
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2023-11-29 22:38:12 -03:00
7ff1b1795e feat: for 2023-07-24 22:05:40 -03:00
aab51c331f refactor: enable gofmt linter and fix all issues
- also rewrite 'interface{}' as 'any'
2023-04-05 21:55:42 -03:00
9e1d4e7855 Add golangci-lint
https://golangci-lint.run/
2022-05-15 21:30:07 -03:00
e6c4706b73 Add support for delegating CLI arguments with "--" and a special CLI_ARGS variable
Closes #327
2021-03-20 11:58:45 -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
68ce8642b1 Create v3 compiler which respects declaration order of variables
Also, fix "<no value>" been printed when a non-existing variable is printed.
2020-05-16 15:46:07 -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
1a28e5e0d4 Few code improvements on #216 2019-09-14 17:54:41 -03:00
a1aec8178a Export Time Struct to Template 2019-08-25 13:36:48 -07:00
db36bc67f1 Changes per feedback 2019-08-25 10:30:00 -07: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