Pete Davison
d47bad9071
feat: unexport all node implementation fields
2025-05-01 18:13:51 +00:00
Pete Davison
39d172f1f4
fix: TaskfileNotSecureError should use redacted URI
2025-05-01 18:09:47 +00:00
Pete Davison
bf59e9cb95
chore: improve function naming
2025-05-01 18:05:58 +00:00
Pete Davison
474eec1249
feat: redact credentials in remote urls
2025-04-28 16:16:10 +00:00
Pete Davison
8162b05f59
Revert "feat: process variables in include vars ( #2113 )"
...
This reverts commit f0414f162d8e34e7ca9da1c750fa8202aa6f5451.
2025-04-27 22:15:49 +00:00
Andrey Nering
3976e8372a
chore: move the experiments
package out of the internal/
dir
...
Closes #2014
2025-04-21 13:55:56 -03:00
Pete Davison
c5afffb551
feat: recursive config search ( #2166 )
...
* refactor: experiments flags
* refactor: args.Parse
* feat: recursive search for taskrc files
* feat: consolidate some code into new fsext package
* feat: add tests for search and default dir
* fix: linting issues
2025-04-19 12:20:33 +01:00
Pete Davison
a84f09d45f
feat: remote taskfile improvements (cache/expiry) ( #2176 )
...
* feat: cache as node, RemoteNode and cache-first approach
* feat: cache expiry
* feat: pass ctx into reader methods instead of timeout
* docs: updated remote taskfiles experiment doc
* feat: use cache if download fails
2025-04-19 12:12:08 +01:00
Pete Davison
04df108fb5
docs: package api docs ( #2169 )
...
* refactor: pass Node into Read method instead of Reader type
* docs: add "key packages" and "Reading Taskfiles" sections to package doc
2025-04-19 11:58:31 +01:00
Pete Davison
a60c2ec3f8
fix: sources brace expansion ( #2075 )
2025-04-19 11:51:31 +01:00
Pete Davison
f0414f162d
feat: process variables in include vars ( #2113 )
...
* feat: process variables in include vars
* feat: add test for include variables
2025-04-05 23:12:54 +01:00
Pete Davison
cd81d94e18
feat: better functional options for reader ( #2148 )
2025-04-01 14:51:25 +01:00
Pete Davison
c6f1b3ae4f
feat: make map variables experiment (prop 2) generally available ( #2081 )
...
* feat: make map variables experiment (prop 2) generally available
* docs: remove map variables experiment page and update usage to include map variable info
2025-03-26 21:40:09 +00:00
Pete Davison
d1360ee72a
refactor: embed the default Taskfile instead of defining it in code ( #2112 )
2025-03-11 13:53:08 +00:00
Pete Davison
ffeb3bcc3f
refactor: executor functional options ( #2085 )
...
* refactor: executor functional options
* refactor: minor tidy up of list code
* fix: WithVersionCheck missing from call to NewExecutor
* feat: docstrings for structs with functional options
* refactor: prefix the functional options with the name of the struct they belong to
2025-03-10 20:38:25 +00:00
Pete Davison
6604b9a8cc
fix: special variable type errors in vars with no task context ( #2107 )
...
* fix: stop dotenv trying to fetch variables when no dotenv specified
* fix: set special variables to "" when they can't be calculated
2025-03-10 11:46:07 +00:00
Valentin Maerten
c23c46e326
fix: include with dynamic vars ( #2092 )
2025-02-26 17:49:05 +01:00
Oleksandr Redko
a266fba93e
chore: add linter mirror ( #2060 )
2025-02-24 09:06:54 -03:00
Pete Davison
b14125bacd
fix: remove debug line
2025-02-24 02:16:53 +00:00
Pete Davison
60c8ee0ce6
refactor: ast.Call should be in main task package ( #2084 )
2025-02-23 18:30:42 +00:00
Pete Davison
d6234af49a
feat: allow variable references in a matrix ( #2069 )
2025-02-23 18:13:56 +00:00
Valentin Maerten
461714a899
feat: add a new .taskrc.yml to enable experiments ( #1982 )
2025-02-23 10:51:59 +01:00
Pete Davison
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
Pete Davison
4d15a8be8f
feat: remove logger from taskfile package ( #2082 )
...
* refactor: remove logger from the taskfile node interface
* refactor: functional options on taskfile.Reader
* feat: use pass in debug/prompt functions to Reader rather than task Logger
* chore: reader docstrings
* fix: typo
2025-02-22 16:00:37 +00:00
Pete Davison
cdb6a3f70a
feat: decoding improvements ( #2068 )
...
* refactor: moved/simplified snippets into its own file with tests
* refactor: move snippet to taskfile package
* feat: support snippets with line/col = 0
* feat: functional options for snippets
* feat: added option to hide snippet indicators
* feat: store raw lines for length calculations
* feat: add debug function for TaskfileDecodeError
* fix: decode errors from commands
* fix: schema for defer cmd calls
* fix: linting issues
* refactor: split var and vars into different files like other structures
2025-02-22 15:44:22 +00:00
Pete Davison
6ce798e16c
feat: experiments logging improvements ( #2049 )
...
* feat: warn when enabling inactive experiments
* feat: TASK_ environment prefix
* feat: calculate experiment enabled/active instead of storing
* refactor: rename GetTaskVar to GetTaskEnv
* feat: experiments tests
2025-02-08 23:02:51 +00:00
Ukjae Jeong
edbb83f6de
fix: HTTPNode.Location
when building graph ( #2007 )
...
* Fix HTTPNode.Location when building graph
* Add test and fix cache
2025-01-29 22:46:43 +00:00
Pete Davison
fd3532812e
fix: orderedmap race condition ( #1972 )
2024-12-30 17:58:45 +00:00
Pete Davison
2965841eb7
feat: use external package for ordered maps ( #1797 )
2024-12-30 17:54:36 +00:00
Valentin Maerten
5f1d46c770
feat: can exclude task from being included ( #1859 )
2024-12-30 10:09:28 +01:00
christiandins
4dffab2e0a
feat: add parallel test execution to improve runtime ( #1882 )
2024-12-11 21:47:10 -03:00
christiandins
b9a5d1c573
lint: add linter noctx ( #1898 )
2024-12-11 21:42:04 -03:00
Danilo Bürger
4595c1e32a
feat: add silent for defer ( #1879 )
...
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
2024-12-07 16:16:27 +01:00
Alexey Palazhchenko
2aa2963565
chore(deps): switch to mainted fork of git-urls
( #1917 )
2024-11-12 09:29:29 +01:00
Pete Davison
148b090d8e
fix: bug where non-nil, empty dynamic variables are returned as an empty interface ( #1904 )
2024-11-04 13:30:39 +00:00
Matheus Mina
5581954fb1
feat: allow providing single or multi prompts ( #1866 )
...
* Add new type to handle single or multi prompts
* update docs
* apply review
2024-10-29 13:37:03 +00:00
Valentin Maerten
a35910429c
feat: option to ensure variable is within the list of values ( #1827 )
2024-10-18 18:16:57 +02:00
Paulo Bittencourt
8dd3f4b119
refactor: re-organize node loading code to make it easier to follow ( #1771 )
2024-10-18 18:13:25 +02:00
Paulo Bittencourt
a72e70b026
fix: inconsistent current directory resolution depending on include order ( #1757 )
2024-10-05 21:40:22 -03:00
Paulo Bittencourt
8d0f0b049c
fix: Print dotenv file path when there is an error reading file ( #1842 )
2024-09-29 16:03:48 -04:00
Valentin Maerten
e6ea0647d7
feat(remote): support include git remote ( #1652 )
2024-09-24 13:44:54 -04:00
Valentin Maerten
30c59bf387
fix(remote): wait for prompt in the reader ( #1833 )
2024-09-24 13:21:09 -04:00
Valentin Maerten
c77c8a419b
refactor: check if the remote exists just before reading it ( #1713 )
...
* refactor: check if the remote exists in the read to avoid doing it in offline mode
* fix: timeout error was not working
* fix: use cached copy if available
2024-09-07 20:54:05 +01:00
Valentin Maerten
0e2c9cc88f
fix: include flatten with a default task ( #1778 )
2024-09-06 10:44:28 -03: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
Valentin Maerten
ef3b853728
feat: add option to declare an included Taskfile as flatten ( #1704 )
2024-08-26 17:17:39 -04: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
76030c9146
feat(remote): add a command to clear the cache ( #1639 )
...
* feat(remote): add a command to clear the cache
* Update cmd/task/task.go
Co-authored-by: Andrey Nering <andrey@nering.com.br>
* rebase
---------
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2024-06-28 17:42:16 +01:00
Valentin Maerten
6012da7a21
feat(remote): prefix checksums/cached files with the filename ( #1636 )
...
* feat(remote): add the task filename in the checksum / cache filename
* prefix the filename with the lastDir from the path
2024-06-28 17:07:43 +01:00