Amogh Rameshappa Devapura
c381923d3e
feat: add numCPU func ( #1890 )
2024-10-29 14:50:17 +01:00
Pete Davison
ea85909e8b
chore: update deps
2024-06-09 20:30:43 +00: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
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
Tim Vergenz
16070c7a24
feat: add alias q
for template function shellQuote
( #1603 )
...
Resolves #1601
2024-04-23 22:47:40 -03: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
8d0754af4d
feat: go 1.21
2024-02-17 23:29:49 -03:00
Pete Davison
94aaea390f
feat: merge template func should support variadic list of maps ( #1464 )
2024-01-11 16:00:52 +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
f6a24fe925
feat: added basic merge template function ( #1438 )
2024-01-11 14:29:14 +00:00
Pete Davison
00896a1318
feat: add spew function to templater ( #1452 )
2024-01-10 22:04:45 -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
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
72d77eb6c0
chore(deps): upgrade slim-sprig to v3.0.0 ( #1329 )
2023-09-14 01:59:35 +00:00
Pete Davison
ca72f3c3a1
feat: added joinPath and relPath functions
2023-07-24 22:05:40 -03:00
Pete Davison
7ff1b1795e
feat: for
2023-07-24 22:05:40 -03:00
Pete Davison
09c9094a6b
feat: enforce gofumpt linter
2023-04-05 21:55:42 -03:00
Pete Davison
aab51c331f
refactor: enable gofmt linter and fix all issues
...
- also rewrite 'interface{}' as 'any'
2023-04-05 21:55:42 -03:00
Dhanu Saputra
9c3ee234f1
Add splitArgs
template function ( #1059 )
2023-03-16 21:38:24 -03:00
Oleg Kovalov
b08eac58e9
Fix go-critic suggestions
2022-08-17 19:37:58 +02:00
Andrey Nering
9e1d4e7855
Add golangci-lint
...
https://golangci-lint.run/
2022-05-15 21:30:07 -03:00
Andrey Nering
3cfe21af58
Add shellQuote
template function
2021-10-02 18:29:07 -03:00
Andrey Nering
e6c4706b73
Add support for delegating CLI arguments with "--" and a special CLI_ARGS variable
...
Closes #327
2021-03-20 11:58:45 -03:00
Damian Szulc
47dd9b5a03
Move args and taskfile packages to root directory
2020-08-19 10:59:58 +02:00
Andrey Nering
fb72b46a3c
github.com/go-task/task/v2 -> github.com/go-task/task/v3
2020-08-16 15:48:19 -03:00
Andrey Nering
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
Andrey Nering
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
Andrey Nering
1a28e5e0d4
Few code improvements on #216
2019-09-14 17:54:41 -03:00
Stephen Prater
a1aec8178a
Export Time Struct to Template
2019-08-25 13:36:48 -07:00
Stephen Prater
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
Stephen Prater
db36bc67f1
Changes per feedback
2019-08-25 10:30:00 -07:00
Andrey Nering
bd5fb9be03
Migrate from sprig to slim-sprig
2019-06-22 22:17:24 -03:00
Andrey Nering
3cbc89769d
Re-write import paths to v2
2018-11-04 21:23:35 -02:00
Andrey Nering
87a200e42c
Extract some functionality to its own packages
...
Like variable and template handling, and logging
2018-02-17 16:12:41 -02:00