2da38a5bdc
Cleaning up the run code
2021-07-31 19:36:40 -03:00
97c85e39c3
Only run task once for #53
2021-07-31 19:36:40 -03:00
824b0c0132
Improve error message
2021-07-10 19:33:36 -03:00
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
4e1f2ad017
Enforce NO_COLOR=1 on tests to make sure it passes
...
Closes #459
Fixes #480
Ref #343
Ref fatih/color#137
2021-05-30 22:48:48 -03:00
b825ad6a12
use status.Glob for watch globbing
2021-05-08 15:02:08 -05:00
e6c4706b73
Add support for delegating CLI arguments with "--" and a special CLI_ARGS variable
...
Closes #327
2021-03-20 11:58:45 -03:00
bf6d0c0a74
Improve performance of --list
and --summary
flags
...
Closes #332
2021-01-12 12:03:04 -03:00
e086b654aa
Environment from .env file should be available as variables
...
Fixes #379
2021-01-12 11:11:40 -03:00
4afc0e8ed0
Fixed some bugs and regressions regarding dynamic variables and directories
...
Closes #426
2021-01-09 13:51:06 -03:00
141b377b4e
Partly revert 59d2733b88
...
Keep the old behavior on v2
2021-01-09 10:55:18 -03:00
83d25bfa00
Refactor: Fix import order
...
It should be: stdlib > libs > app
2021-01-07 11:48:33 -03:00
ec4cd5ed48
Fix .task
directory location
...
Closes #247
2021-01-07 11:36:09 -03:00
59d2733b88
Make dynamic variables run on the right directory
...
It was always running in the main Taskfile dir, even when the variable was
declared in an included taskfile in another directory or when task had a
custom dir.
Closes #384
2021-01-07 11:26:11 -03:00
2d52485d7b
Watch: Clear vars cache between runs
...
Closes #365
2021-01-05 11:19:34 -03:00
22fd74846d
Use interp.Params("-e")
intead of running "set -e" manually
...
This is an improvement for ac8e344173
2021-01-01 17:32:42 -03:00
ac8e344173
Run "set -e" automatically for every command
...
Without this, multiline command strings won't always exit when they fail.
Closes #403
2020-12-27 17:15:12 -03:00
16fad60833
execext: Small refactor
2020-12-27 16:51:00 -03:00
47dd9b5a03
Move args and taskfile packages to root directory
2020-08-19 10:59:58 +02:00
6ff3c9015b
On v3, treat all CLI variables as global variables
...
Closes #336
Ref #341
Co-authored-by: Egor Kovetskiy <e.kovetskiy@gmail.com >
2020-08-16 21:27:11 -03:00
fb72b46a3c
github.com/go-task/task/v2 -> github.com/go-task/task/v3
2020-08-16 15:48:19 -03:00
eab14b6c49
Some improvements to #356
2020-08-15 19:13:30 -03:00
8b962fb8e8
#324 implement dotenv
2020-08-03 16:18:38 -06:00
9f83311931
Add label field to task definition
...
Label is an alternative name for task that replace it when printed in following context eg.:
- log: when given task is up to date and is skipped from execution
- log: when given task is NOT up to date (`--status` command)
- in `--summary` and `--list` commands output
2020-06-14 13:42:20 +02:00
f4f6efa547
Skip cleanup if task doesn't have any sources listed
...
Ref #333
2020-05-31 15:48:23 -03:00
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
68ce8642b1
Create v3 compiler which respects declaration order of variables
...
Also, fix "<no value>" been printed when a non-existing variable is printed.
2020-05-16 15:46:07 -03:00
cbb12b29bd
v3: Fix bug where global vars were not being considered
2020-04-05 11:16: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
acfbbaa549
Merge branch 'master' into v3
2020-03-28 10:48: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
eaba1b9cc8
Added structure for storage information about included tasks
2020-01-29 10:02:22 +03:00
7453e688fd
Compile tasks before printing help or summary ( Closes #276 )
2020-01-26 21:32:20 +00:00
15338ecb18
Merge branch 'master' into v3
2019-12-07 22:04:16 -03:00
4bdfe64afb
Add hability silent all tasks
...
By add `silent: true` at the root of the Taskfile.
2019-12-07 21:44:09 -03:00
b7b752b92f
Allow shorter syntax for tasks with default configuration
...
Closes #194
Closes #240
Co-authored-by: Jaedle <dennis.jekubczyk@gmail.com >
2019-12-07 21:28:02 -03:00
b7bcd204b4
go fmt internal/taskfile/task.go
2019-12-07 20:09:16 -03:00
7373639f57
Expose .TASK
variable with the task name
...
Closes #252
2019-12-07 19:43:10 -03:00
d718527a1f
Merge branch 'master' into v3
2019-12-07 16:54:29 -03:00
48add0f293
Write more args tests
2019-12-07 16:48:23 -03:00
a4685229c9
Fix bug of Task not executing the "default" task
...
When global vars were informed using the CLI.
I took the oportunity to move this logic to the proper package and
write a test.
2019-12-07 16:20:36 -03:00
1d3b93d88d
Remove bold from colored text
2019-11-24 21:07:12 -03:00
62752ba7e1
Merge branch 'master' into v3
2019-11-24 21:02:33 -03:00