6528b36caa
feat: add uuid and rand number functions ( #2225 )
...
* feat: add uuid and rand number functions
* chore: remove randFloat for now
2025-05-01 17:58:01 +00:00
d850d03c96
feat: add yaml templating functions ( #2219 )
...
* feat: add yaml templating functions
* docs: add yaml functions to templating reference
* refactor: remove some unnecessary function wrappers
2025-04-28 12:19:56 +00:00
13daa6dc35
feat: formatting with golangci-lint and gci
2025-04-27 22:28:42 +00:00
fb631902ce
refactor: run task through modernize tool ( #2088 )
2025-02-24 11:59:50 +00:00
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
c381923d3e
feat: add numCPU func ( #1890 )
2024-10-29 14:50:17 +01: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
16070c7a24
feat: add alias q
for template function shellQuote
( #1603 )
...
Resolves #1601
2024-04-23 22:47:40 -03: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
94aaea390f
feat: merge template func should support variadic list of maps ( #1464 )
2024-01-11 16:00:52 +00:00
1f3fca50b3
feat: add ability to call task with variable by reference
2024-01-11 14:44:04 +00:00
f6a24fe925
feat: added basic merge template function ( #1438 )
2024-01-11 14:29:14 +00:00
00896a1318
feat: add spew function to templater ( #1452 )
2024-01-10 22:04:45 -03: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
72d77eb6c0
chore(deps): upgrade slim-sprig to v3.0.0 ( #1329 )
2023-09-14 01:59:35 +00:00
ca72f3c3a1
feat: added joinPath and relPath functions
2023-07-24 22:05:40 -03:00
7ff1b1795e
feat: for
2023-07-24 22:05:40 -03:00
09c9094a6b
feat: enforce gofumpt linter
2023-04-05 21:55:42 -03:00
aab51c331f
refactor: enable gofmt linter and fix all issues
...
- also rewrite 'interface{}' as 'any'
2023-04-05 21:55:42 -03:00
9c3ee234f1
Add splitArgs
template function ( #1059 )
2023-03-16 21:38:24 -03:00
b08eac58e9
Fix go-critic suggestions
2022-08-17 19:37:58 +02:00
9e1d4e7855
Add golangci-lint
...
https://golangci-lint.run/
2022-05-15 21:30:07 -03:00
3cfe21af58
Add shellQuote
template function
2021-10-02 18:29: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
cb6fe4bb59
Merge remote-tracking branch 'upstream/v3' into report-timestamp-to-status
...
* upstream/v3:
v3.0.0-preview1
Update v3 changelog
Only have colored output on v3
Add --color=false flag to disable colored output
Update documentation about sprig
Update CHANGELOG
Migrate from sprig to slim-sprig
Fix build after merging master
Use colors for some output messages
2019-08-25 10:33:13 -07:00
db36bc67f1
Changes per feedback
2019-08-25 10:30:00 -07:00
bd5fb9be03
Migrate from sprig to slim-sprig
2019-06-22 22:17:24 -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