Pete Davison
93cccd4027
fix: only create a cache if the node is remote
2023-09-14 21:28:43 -03:00
Pete Davison
22ce67c5e5
feat: remote taskfiles (HTTP) ( #1152 )
...
* feat: remote taskfiles over http
* feat: allow insecure connections when --insecure flag is provided
* feat: better error handling for fetch errors
* fix: ensure cache directory always exists
* fix: setup logger before everything else
* feat: put remote taskfiles behind an experiment
* feat: --download and --offline flags for remote taskfiles
* feat: node.Read accepts a context
* feat: experiment docs
* chore: changelog
* chore: remove unused optional param from Node interface
* chore: tidy up and generalise NewNode function
* fix: use sha256 in remote checksum
* feat: --download by itself will not run a task
* feat: custom error if remote taskfiles experiment is not enabled
* refactor: BaseNode functional options and simplified FileNode
* fix: use hex encoding for checksum instead of b64
2023-09-12 22:42:54 +01:00
Pete Davison
afe8a618fe
feat: node refactor ( #1316 )
...
* refactor: node reader interface
* refactor: rewrite Taskfile() as anon recursive func
* chore: NewNodeFromIncludedTaskfile
* chore: changelog
2023-09-02 21:24:01 +01:00
Hudson Clark
8a0689328b
fix: propagate include vars in multi-level includes ( #1256 )
2023-07-08 11:42:38 -03:00
Pete Davison
5e78171d3e
feat: support lowercase Taskfiles ( #1221 )
2023-06-17 14:38:53 -03:00
Pete Davison
f9c77acd96
feat: custom error codes ( #1114 )
2023-04-15 17:22:25 -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
09c9094a6b
feat: enforce gofumpt linter
2023-04-05 21:55:42 -03: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
8b72c86ba5
feat: use semver package for taskfile schema version
2023-02-10 18:14:38 +00:00
Andrey Nering
e235d77d64
Add CHANGELOG to #964
2022-12-22 21:27:19 -03:00
Henrique Corrêa
dbe8131b75
Close Taskfile after reading it ( #964 )
...
This should fix issues preventing modifications to the Taskfile while tasks are still running, like switching git branches for example.
See #963 .
2022-12-22 21:23:17 -03:00
Pete Davison
b3627fcb18
Run Taskfiles from sub/child directories ( #920 )
2022-12-05 21:58:20 -03:00
Pete Davison
f1d516cf2a
fix: interpolate includes taskfile and dir
2022-11-23 17:58:08 +00:00
Pete Davison
5a08409a27
feat: run default task in included file when task is omitted
2022-11-02 14:27:15 +00:00
Andrey Nering
44aa2ee3b3
Add CHANGELOG and improvements to #887
2022-10-14 19:48:45 -03:00
Andrey Nering
80b417c4ab
Merge pull request #887 from ronaudinho/fix/yaml-error-msg
...
Add file path to YAML error message
2022-10-14 19:36:58 -03:00
Pete Davison
bb79fa1dc3
feat: namespace aliases
2022-10-07 11:11:14 +00:00
ronaudinho
81de61d8db
Add file path to YAML error message
2022-10-07 10:18:53 +00:00
Andrey Nering
4a5c1e9ec4
Merge branch 'internal-tasks' of https://github.com/pd93/task into pd93-internal-tasks
2022-09-17 12:59:19 -03:00
Andrey Nering
f45dd11e53
Add ROOT_DIR and TASKFILE_DIR special variables
...
Closes #215
2022-09-03 18:14:54 -03:00
Pete Davison
3507fa40f1
feat: add internal to included files
2022-08-16 17:07:05 +00:00
Andrey Nering
c4e10ef0aa
Refactor: Add SmartJoin to handle IsAbs automatically
2022-08-06 18:19:07 -03:00
Bevan Arps
e396f4d06f
Resolve relative include paths relative to the including Taskfile
...
Closes #823
Closes #822
2022-08-03 21:59:17 -03:00
Andrey Nering
41cd7acc87
Merge pull request #656 from tylermmorton/master
...
Add support for multi-level includes
2022-03-31 21:12:15 -03:00
Andrey Nering
de09843467
Improvements + CHANGELOG for #677
2022-03-19 18:41:03 -03:00
Dan Ballweg
292cf75836
add vars to included taskfiles
2022-02-23 16:53:46 -06:00
tylermmorton
1f1275255c
Fix bug in includes where default taskfiles were not being checked.
2022-02-21 15:31:55 -05:00
Andrey Nering
51c6ebcd4d
Add tests, documentation and changelog for #666
2022-02-19 18:24:43 -03:00
tylermmorton
6e5f8b1fb0
Append task prefix to log messages
2022-02-03 22:12:58 -05:00
tylermmorton
248952bc8f
Add dist fallbacks to defaultTaskfiles
2022-01-29 11:53:36 -05:00
tylermmorton
c73a2c8f84
Move circular include logic to a separate function
2022-01-15 23:34:59 -05:00
tylermmorton
02e7ff27c7
Add support for multi-level includes and cyclic include detection
2022-01-14 22:38:37 -05:00
Margus Kerma
1d7982e80a
fix( #584 ): Add support to yaml extension
...
- init creates Taskfile.yaml
- add changelog entry
- add zsh completion support for Taskfile.yaml
2022-01-02 15:23:10 +02:00
Andrey Nering
e45ed85b55
Add CHANGELOG + Small nits for #552
2021-09-25 09:40:03 -03:00
Andrey Nering
52474f9103
Merge pull request #552 from justafish/justafish/519/optional-includes
...
Allow includes to be optional
2021-09-25 09:36:44 -03:00
Andrey Nering
6c73ab823b
Add CHANGELOG + gofmt for #557
2021-09-06 10:30:45 -03:00
Alexander Mancevice
8d695bc8d7
simplify logic to expand included paths
2021-09-05 10:57:49 -04:00
Alexander Mancevice
c892d055ed
Use internal execext.Expand to expand ~ in includes
2021-09-05 08:18:47 -04:00
Alexander Mancevice
0a6833e9d8
Allow included Taskfiles to use ~/* paths
2021-08-21 07:20:33 -04:00
Sally Young
8f80fc4e2c
Issue #519 : Allow includes to be optional
2021-08-11 17:28:44 +01:00
Nicolas Fouché
08265ed1d7
Allow vars in dotenv paths, including environment variables
...
Closes #453
Closes #434
Ref #433
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2021-06-05 16:00:19 -03:00
Andrey Nering
4afc0e8ed0
Fixed some bugs and regressions regarding dynamic variables and directories
...
Closes #426
2021-01-09 13:51:06 -03:00
Andrey Nering
83d25bfa00
Refactor: Fix import order
...
It should be: stdlib > libs > app
2021-01-07 11:48:33 -03:00
Andrey Nering
9674d75ff6
Evaluate included taskfiles in order of declaration
...
Closes #393
2021-01-01 18:27:50 -03:00
Andrey Nering
60759a4e3b
Post-fixes and CHANGELOG for #385
2020-10-12 21:16:09 -03:00
Andrey Nering
582a66bb2f
Merge pull request #385 from chris-garrett/dev/378-missing-env
...
Resolves #378 - allow for missing env files as they may be bootstrapped.
2020-10-12 21:12:08 -03:00
Andrey Nering
d78f78bb5c
Fix panic for empty tasks
...
Closes #338
Closes #362
Co-authored-by: Bharath Kumar <shettybharath4@gmail.com>
2020-10-12 21:03:13 -03:00
Chris Garrett
c6138a0660
#378 - allow for missing env files as they may be bootstrapped.
2020-10-03 16:39:58 -06:00
Damian Szulc
47dd9b5a03
Move args and taskfile packages to root directory
2020-08-19 10:59:58 +02:00