Andrey Nering
4bdfe64afb
Add hability silent all tasks
...
By add `silent: true` at the root of the Taskfile.
2019-12-07 21:44:09 -03:00
Andrey Nering
955359b073
Fix nil panic bug when assigning global var and no var is declared on the Taskfile
...
Closes #229
Ref #234
2019-08-10 19:38:57 -03:00
Andrey Nering
d970e93507
Add --taskfile flag (alias -t) to allow running another Taskfile
...
Closes #221
2019-07-21 10:57:04 -03:00
Andrey Nering
abe0352de9
Fixed some bugs regarding minor version checks on version:
...
1. I have forgot to update it on recent releases. Seems that most people just
use round versions since nobody complained.
2. It's too hard to understand how the github.com/Masterminds/semver package
works, so I just got rid of it and we're now using plain float checks.
2019-06-15 22:39:35 -03:00
Stephen Prater
d1463b3e24
Fix typos per review
2019-06-11 11:46:22 -07:00
Stephen Prater
044d3a0ff9
Remove ignore_errors
2019-05-28 13:02:59 -07:00
Stephen Prater
659cae6a4c
Apply suggestions from code review
...
Co-Authored-By: Andrey Nering <andrey.nering@gmail.com>
2019-05-28 12:28:29 -07:00
Stephen Prater
bd5882f0f0
Add Preconditions to Tasks
2019-05-17 13:51:15 -07:00
Andrey Nering
83d618e1eb
Revert "Upgrade to yaml/go-yaml v3"
...
This reverts commit 8001fb3915
.
2019-05-11 11:22:13 -03:00
Andrey Nering
8001fb3915
Upgrade to yaml/go-yaml v3
2019-04-13 17:25:28 -03:00
jaedle
d05d418c4c
renaming field in taskfile to summary
2019-02-24 15:37:02 +01:00
jaedle
07221a1b20
output detailed task description
2019-02-24 09:24:57 +01:00
Andrey Nering
1dec956e99
Allow calling a task of the root Taskfile from within an included Taskfile
...
Fixes #161
2019-02-02 21:22:08 -02:00
Tim Foerster
310394aa60
task: Fix merge behavior
2019-02-02 17:19:20 -02:00
Sergey
44a63580f0
taskfile: missing task: prefix to the error message
2019-01-23 02:01:53 +05:00
Sergey
9ed2dca427
taskfile: return defined error when taskfile.yml is not found
2019-01-21 14:56:14 +05:00
Andrey Nering
4ddad68212
Merge global environment variables when merging tasks
2019-01-02 13:20:12 -02:00
Andrey Nering
aac6c5a1c7
Add hability to globally set environment variables
...
Closes #138
2019-01-02 12:06:12 -02:00
Andrey Nering
95b75c5330
Fix issue on running dependencies or tasks on included Taskfiles
...
Fixes #151
2018-12-09 15:54:58 -02:00
Andrey Nering
a9b1f38a7c
Fix nil errors when merging Taskfiles
...
Closes #150
2018-12-02 14:17:32 -02:00
Andrey Nering
3cbc89769d
Re-write import paths to v2
2018-11-04 21:23:35 -02:00
Andrey Nering
5d9de14ca3
Increment the current Taskfile version to 2.2
2018-10-13 18:25:40 -03:00
Andrey Nering
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
Andrey Nering
5a28560177
Write first test for including a Taskfile
2018-10-13 16:56:51 -03:00
Andrey Nering
db280adf55
Merge branch 'master' into feature/include
2018-10-13 16:40:32 -03:00
Andrey Nering
08263c0597
Fix wrong error message beingg print when the file has a syntax error
...
Fixes #137
2018-09-22 17:29:18 -03:00
Andrey Nering
9a5a1e2253
Start support to including Taskfiles
2018-09-09 22:29:29 -03:00
Andrey Nering
df951a0c7c
Fix suggestion to use task --init not being shown anymore
2018-08-19 16:23:32 -03:00
Andrey Nering
feaf70922d
Allow ignore_error at task level
2018-08-05 12:53:42 -03:00
Tobias Salzmann
90a5f17f58
Merge branch 'master' into master
2018-08-01 10:47:25 +02:00
Tobias Salzmann
108cb91d95
IgnoreError
...
* Document ignore_error
* ignore_error only for commands
2018-08-01 10:44:53 +02:00
Andrey Nering
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
Andrey Nering
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
Andrey Nering
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
Tobias Salzmann
05600601ff
add ignoreError option
2018-07-10 10:44:58 +02:00
Andrey Nering
a407b0a8eb
First step implementing "prefixed" output option
...
Ref #104
2018-04-22 15:41:53 -03:00
Andrey Nering
8b3c34c308
Add "output" options to the Taskfile
...
Also, fix handling of Taskfile by making the version an instance of
`semver.Constraints` instead of `semver.Version`. This makes the version
works as described on TASKFILE_VERSIONS.md document, i.e. version "2" will
include "2.x" features but version "2.0" not.
2018-04-15 11:11:07 -03:00
Andrey Nering
51998f706f
Allow customizable number of expansions
...
Updates #66
2018-03-04 15:50:03 -03:00
Andrey Nering
1a3df08aca
Allow global variables in the Taskfile
...
Closes #66
2018-03-04 15:39:14 -03:00
Andrey Nering
12c0d18932
Move setting of default version to "taskfile" package
2018-03-03 18:56:15 -03:00
Andrey Nering
2d4ca37226
Use semver for Taskfile versions
2018-03-03 18:54:42 -03:00
Andrey Nering
152fc0ad38
Move all structs related to Taskfile to its own package
2018-02-17 14:22:18 -02:00