1
0
mirror of https://github.com/go-task/task.git synced 2025-07-11 01:20:45 +02:00
Commit Graph

25 Commits

Author SHA1 Message Date
9f0f18c5c4 v3: Allow interpolation on "includes"
The idea is to allow manual inclusion of a OS-dependant Taskfile, since it's
not automatically included anymore.
2020-05-17 16:03:03 -03:00
191c34c9c4 v3: Do not include Taskfile_{{OS}}.yml automatically 2020-05-17 15:42:27 -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
a044c41c66 Upgrade github.com/go-yaml/yaml to v3 2020-03-28 11:27:49 -03:00
0acb911d6a Fixed absolute path resolving for included tasksfile 2020-02-15 18:07:09 +03:00
17ad7060b3 Added version validation and updated tests 2020-02-15 17:24:06 +03:00
f38ba7fcd3 Removed automatic inclusion of Taskfiles by OS and update tests 2020-02-15 17:19:09 +03:00
a3464068bd Rename TaskFile to Taskfile 2020-02-12 10:42:00 +03:00
8ff81562d2 Added os-related files for included taskfiles 2020-01-29 10:39:43 +03:00
7a8142ed92 Added included taskfile directory resolving 2020-01-29 10:39:26 +03:00
d970e93507 Add --taskfile flag (alias -t) to allow running another Taskfile
Closes #221
2019-07-21 10:57:04 -03:00
83d618e1eb Revert "Upgrade to yaml/go-yaml v3"
This reverts commit 8001fb3915.
2019-05-11 11:22:13 -03:00
8001fb3915 Upgrade to yaml/go-yaml v3 2019-04-13 17:25:28 -03:00
44a63580f0 taskfile: missing task: prefix to the error message 2019-01-23 02:01:53 +05:00
9ed2dca427 taskfile: return defined error when taskfile.yml is not found 2019-01-21 14:56:14 +05:00
3cbc89769d Re-write import paths to v2 2018-11-04 21:23:35 -02:00
5eb1a1f7f5 Fixes to Taskfile including:
- Disallow recursive Taskfile including (i.e. included Taskfile including other Taskfiles)
- Write test for included a file instead of a directory
2018-10-13 17:52:09 -03:00
5a28560177 Write first test for including a Taskfile 2018-10-13 16:56:51 -03:00
db280adf55 Merge branch 'master' into feature/include 2018-10-13 16:40:32 -03:00
08263c0597 Fix wrong error message beingg print when the file has a syntax error
Fixes #137
2018-09-22 17:29:18 -03:00
9a5a1e2253 Start support to including Taskfiles 2018-09-09 22:29:29 -03:00
df951a0c7c Fix suggestion to use task --init not being shown anymore 2018-08-19 16:23:32 -03:00
cc6f7b6088 Manually implement merging of Taskfiles and remove dependency on github.com/imdario/mergo
I was carreful enough to check the behavior keeps the same
2018-07-22 17:54:44 -03:00
da1b0c9558 Error if Taskfile_{{GOOS}}.yml version doesn't match Taskfile.yml version
This change is not backward incompatible because merging was already not
working if versions 1 and 2 coexist in Taskfile.yml and Taskfile_{{GOOS}}.yml
2018-07-22 17:36:30 -03:00
9f294b4d10 Refactor and move logic of reading Taskfiles to its own package
Idea to making things easier to start implementing #98
2018-07-22 16:10:20 -03:00