Pete Davison
bb9d582255
feat: stdin node
2024-02-22 14:59:54 -06:00
Pete Davison
38a06dad8e
feat: error when multiple wildcard matches are found
2024-02-22 14:58:24 -06:00
Pete Davison
9a3d2bc3aa
feat: wildcard matching of task names
2024-02-22 14:58:24 -06:00
Pete Davison
1ef5cf71d0
feat: pass ast.Call by reference
2024-02-22 14:58:24 -06:00
Pete Davison
8d0754af4d
feat: go 1.21
2024-02-17 23:29:49 -03:00
Pete Davison
870c07eafb
fix: remote prompt ( #1487 )
2024-01-27 18:45:13 -03:00
Pete Davison
d5b42e97ec
refactor: use tf for taskfile instead of t
2024-01-25 21:23:28 -03:00
Pete Davison
d6b2926828
refactor: move task merge code into a method
2024-01-25 21:23:28 -03:00
Pete Davison
909ec1ed0f
refactor: convert taskfile.Merge into a method
2024-01-25 21:23:28 -03:00
Pete Davison
26e79121f9
refactor: consistent naming for errors
2024-01-25 21:05:23 -03:00
Pete Davison
e2b85c6aa1
feat: version checks
2024-01-25 21:05:23 -03:00
Pete Davison
98ea907284
fix: bug where silent value was not deep copied on dependencies
2024-01-11 14:44:04 +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
c655d90ab3
feat: add json and yaml variable constructors
2024-01-11 14:44:04 +00:00
Pete Davison
2ccf80713d
feat: add sh and map (value) support
2024-01-11 14:44:04 +00:00
Pete Davison
dfe39bfb5d
feat: support multiple experiment values
2024-01-11 14:44:04 +00:00
Pete Davison
e734e29009
refactor: move prompts into consts
2024-01-11 14:00:30 +00:00
Pete Davison
3b5fbf94f7
refactor: split read.go into taskfile.go and reader.go
2024-01-11 14:00:30 +00:00
Pete Davison
7cb45a23b6
refactor: orderedmap package -> omap
2024-01-11 14:00:30 +00:00
Pete Davison
1a03c3fbaf
feat: includes should use OrderedMap
2024-01-11 14:00:30 +00:00
Pete Davison
d684e59b6a
feat: store namespace directly in include
2024-01-11 14:00:30 +00:00
Pete Davison
5fc66293b0
refactor: IncludedTaskfiles -> Includes
2024-01-11 14:00:30 +00:00
Pete Davison
42af0fc791
feat: invert call.Direct ( #1459 )
2024-01-10 21:32:49 -03:00
Pete Davison
61c0c32c2a
fix: find and replace mistake
2023-12-29 20:42:30 +00: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
4a0414274f
feat: for supports variables and lists of any type
2023-12-20 19:55:25 -06:00
Pete Davison
1a12b94bd3
feat: new dynamic variable syntax
2023-12-20 19:55:25 -06:00
Pete Davison
1cd26ae1b9
feat: add ability to unmarshal as any when experiment enabled
2023-12-20 19:55:25 -06: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
Pete Davison
546a4d7e46
feat: prefer remote taskfiles over cached ones ( #1345 )
...
* feat: prefer remote taskfiles over cached ones
* feat: implemented cache on network timeout
* feat: --download always downloads, but never executes tasks
* feat: --timeout flag
* fix: bug with timeout error handling
* chore: changelog
2023-11-17 14:51:10 -06:00
Andrey Nering
6de3be1384
refactor(merge): use constant
2023-10-21 21:10:42 -03:00
Pete Davison
dc77286282
feat: unify prompts ( #1344 )
2023-10-07 21:55:43 +00:00
Andrey Nering
adfb96b637
feat: add ability to set watch: true
in Taskfile ( #1361 )
2023-10-07 18:06:43 -03:00
Pete Davison
078e213890
feat: error handling for undefined schema version ( #1342 )
...
* feat: error handling for undefined schema version
* docs: error codes
* chore: changelog
2023-09-19 19:21:40 +01:00
Pete Davison
d1d312f396
refactor: minor improvements to setCurrentDir
2023-09-14 21:28:43 -03:00
Pete Davison
ba299aa71f
fix: incorrect remote taskfiles cache directory
2023-09-14 21:28:43 -03:00
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
Andrey Nering
e96712b020
fix: make sure USER_WORKING_DIR works corrently with includes ( #1309 )
...
Closes #1046
Closes #1205
Closes #1250
Closes #1293
Closes #1274
Closes #1309
Closes #1312
Co-authored-by: Marcus Spading <ms@fragmentum.net>
2023-08-26 21:06:50 +00:00
Pete Davison
36565bbbd2
fix: silent should be processed via taskCall
2023-07-24 22:05:40 -03:00
Pete Davison
7ff1b1795e
feat: for
2023-07-24 22:05:40 -03:00
Evan
364ddef56b
fix: add nil guards in dependency merge ( #1263 )
2023-07-24 21:22:39 -03:00
Hudson Clark
8a0689328b
fix: propagate include vars in multi-level includes ( #1256 )
2023-07-08 11:42:38 -03:00
Ben Coleman
307f39cee3
feat: add ability to specify which vars are required ( #1204 )
2023-06-29 22:13:41 -03:00
Pete Davison
5fdaa9aa36
feat: implement gentle force experiment draft ( #1216 )
...
* feat: implement gentle force experiment draft
* docs: changelog
2023-06-18 02:32:18 +01:00
Pete Davison
5e78171d3e
feat: support lowercase Taskfiles ( #1221 )
2023-06-17 14:38:53 -03:00
Tim De Pauw
e2c1b3b931
feat: add support for single cmd task syntax ( #1131 )
2023-06-10 22:08:28 -03:00
Max Cheetham
f815ce2901
feat(prompts): add ability for tasks to prompt user pre execution ( #1163 )
2023-06-03 22:33:00 -03:00
Mads H. Danquah
9a406f5998
fix: ensure that calls to other tasks can be silenced ( #680 )
2023-05-22 22:09:29 -03:00
Pete Davison
7ec5cac56b
fix: nil pointer when version is omitted ( #1149 )
2023-05-02 16:51:39 +01: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
719f30219b
refactor: use require for testing errors ( #1100 )
2023-04-06 11:18:41 +01: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
Pete Davison
cc1fd3d03e
fix: deep copying pointers inside slices ( #1072 )
2023-03-25 16:13:06 -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
Dennis Jekubczyk
88d644a7e9
Add ability to set error_only: true
on the group
output mode
2023-03-08 22:34:52 -03:00
Pete Davison
8b72c86ba5
feat: use semver package for taskfile schema version
2023-02-10 18:14:38 +00:00
Pete Davison
74f69a21cd
fix: tasks being incorrectly marked as internal
2023-02-10 17:02:11 +00:00
Pete Davison
1c1be683ab
feat: set and shopt directives ( #929 )
...
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2023-01-14 16:41:56 -03:00
Andrey Nering
2efb3533ec
Add CHANGELOG + improvements to #980
...
Closes #978
2023-01-06 21:39:57 -03:00
Lea Anthony
aa6c7e4b94
Add support for 'platforms' in both task and command ( #980 )
2023-01-06 21:38:35 -03:00
Pete Davison
c4766e2611
fix: add missing nil check ( #971 )
...
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2022-12-31 13:54:26 -03:00
Pete Davison
796097e3ab
fix: watch interval ( #970 )
2022-12-31 13:48:49 -03: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
491888f6c0
feat: improve unmarshal error handling and use v3 yaml interface everywhere ( #959 )
2022-12-18 22:11:31 -03:00
Pete Davison
b3627fcb18
Run Taskfiles from sub/child directories ( #920 )
2022-12-05 21:58:20 -03:00
Pete Davison
99d7338c29
feat: add task-level dotenv support ( #904 )
2022-12-05 21:25:16 -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
Andrey Nering
297f9eccea
For include aliases, consider the main task name as well
2022-10-14 19:27:20 -03:00
Andrey Nering
d2f2cba6d8
Merge branch 'master' into aliases
2022-10-14 18:44:56 -03:00
Pete Davison
8ec89f1bbd
refactor: use x/exp/slices instead of custom contains function
2022-10-07 11:11:14 +00:00
Pete Davison
d33906b6e4
fix: deep copy included tasks
2022-10-07 11:11:14 +00:00
Pete Davison
bb79fa1dc3
feat: namespace aliases
2022-10-07 11:11:14 +00:00
Pete Davison
376a6182eb
feat: aliases
...
feat: add aliases to --list and --list-all flags
feat: add aliases to --summary
feat: enable aliases for included tasks
tests: added alias unit tests
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
ilewin
d8dc091267
Merge branch 'go-task:master' into configurable_watch_interval_#813
2022-09-19 20:22:26 +02:00
ilewin
1c44d8049a
Issue 813. Made watch interval configurable through global setting in Taskfile and through CLI arg.
...
Separated Taskfile param and Arg flag
2022-09-19 20:14:35 +02: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
Pete Davison
44706f4957
fix: ignore empty dotfile file names
2022-09-08 18:51:39 +00:00
Andrey Nering
f45dd11e53
Add ROOT_DIR and TASKFILE_DIR special variables
...
Closes #215
2022-09-03 18:14:54 -03:00
Pete Davison
e3b6c97c3b
fix: the merged task should be internal if the task OR the taskfile are internal
2022-08-16 17:07:05 +00:00
Pete Davison
3507fa40f1
feat: add internal to included files
2022-08-16 17:07:05 +00:00
Pete Davison
6f8f1f1409
feat(task): tasks can be internal (not accessible from cli)
2022-08-16 17:06:25 +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
9e1d4e7855
Add golangci-lint
...
https://golangci-lint.run/
2022-05-15 21:30:07 -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