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
111f6e7f18
Add CHANGELOG entry and API documentation for #818
2022-09-17 13:11:16 -03:00
4a5c1e9ec4
Merge branch 'internal-tasks' of https://github.com/pd93/task into pd93-internal-tasks
2022-09-17 12:59:19 -03:00
f45dd11e53
Add ROOT_DIR and TASKFILE_DIR special variables
...
Closes #215
2022-09-03 18:14:54 -03:00
8788703ac6
CHANGELOG for #831
...
Closes #826
2022-08-23 18:43:04 -03:00
cdc969cd4e
Added test to check if symlinks are evaluated for task source files
2022-08-23 18:36:19 +02:00
3507fa40f1
feat: add internal to included files
2022-08-16 17:07:05 +00:00
6f8f1f1409
feat(task): tasks can be internal (not accessible from cli)
2022-08-16 17:06:25 +00:00
e396f4d06f
Resolve relative include paths relative to the including Taskfile
...
Closes #823
Closes #822
2022-08-03 21:59:17 -03:00
58c7cc5d05
Adds test TestErrorCode
2022-06-02 16:44:23 +02:00
bffb6e1a07
add regression test for SIGINT behavior
...
See go-task/task/#458
Helper (sleepit) and test code based on https://github.com/marco-m/timeit
2022-05-13 17:36:52 -07:00
350f74a53d
CHANGELOG: Add entry for #656
2022-03-31 21:19:16 -03:00
41cd7acc87
Merge pull request #656 from tylermmorton/master
...
Add support for multi-level includes
2022-03-31 21:12:15 -03:00
de09843467
Improvements + CHANGELOG for #677
2022-03-19 18:41:03 -03:00
60fa6e6c0a
update
2022-02-24 13:18:35 -06:00
2f18f7927d
test include variables
2022-02-24 13:17:20 -06:00
fc95061f4c
Add missing newlines
2022-02-21 15:33:54 -05:00
1f1275255c
Fix bug in includes where default taskfiles were not being checked.
2022-02-21 15:31:55 -05:00
cfb665310e
Merge branch 'group-begin-message' of https://github.com/janslow/task into janslow-group-begin-message
2022-02-19 18:42:34 -03:00
51c6ebcd4d
Add tests, documentation and changelog for #666
2022-02-19 18:24:43 -03:00
35af240faa
Add newlines to multi-level test Taskfiles
2022-02-03 22:19:07 -05:00
0ac56f8973
Add newlines to test Taskfiles
2022-02-03 22:13:43 -05:00
c73a2c8f84
Move circular include logic to a separate function
2022-01-15 23:34:59 -05:00
02e7ff27c7
Add support for multi-level includes and cyclic include detection
2022-01-14 22:38:37 -05:00
74f5cf8f29
Add support for begin/end messages with grouped output
...
Fixes #647
This allows CI systems that support grouping (such as with [GitHub Actions's `::group::` command](https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#grouping-log-lines ) and [Azure Devops](https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#formatting-commands )) to collapse all of the logs for a single task, to improve readability of logs
## Example
The following Taskfile
```
# Taskfile.yml
version: 3
output:
group:
begin: "::group::{{ .TASK }}"
end: "::endgroup::"
tasks:
default:
cmds:
- "echo 'Hello, World!'"
```
Results in the following output
```bash
$ task
task: [default] echo 'Hello, World!'
::group::default
Hello, World!
::endgroup::
```
See [this GitHub Actions job](https://github.com/janslow/task/runs/4811059609?check_suite_focus=true ) for a full example
<img width="771" alt="image" src="https://user-images.githubusercontent.com/1253367/149429832-6cb0c1b5-0758-442e-9375-c4daa65771bc.png ">
<img width="394" alt="image" src="https://user-images.githubusercontent.com/1253367/149429851-1d5d2ab5-9095-4795-9b57-f91750720d40.png ">
2022-01-14 00:22:14 +00:00
f945fa60d9
Merge branch 'bugfix/issue-481-dynamic-vars-broken' of https://github.com/masaushi/task into masaushi-bugfix/issue-481-dynamic-vars-broken
2022-01-04 17:39:14 -03:00
00a90d1fe6
Merge branch 'f/list-all' of https://github.com/therealkevinard/task into therealkevinard-f/list-all
2022-01-04 17:03:12 -03:00
09c9d55695
Changes from PR Review:
...
- Remove ^task syntax from `defer`
- Support task call syntax in defer
2022-01-02 16:38:06 -05:00
69e9effc88
initial pass at deferred commands
2022-01-02 15:55:43 -05:00
1c782c599f
Remove deprecated "$" and "^" prefixes
...
`$` was a variable prefix that make it being evaluated as shell. It was
replaced with `sh:`.
`^` is a command prefix that make it run another task. It was replaced
with `task:`.
These were added long ago when we were experimenting with stuff and kept for
some time for backward compatibility reasons, but sometimes causes confusion
and I think the time to remove the code came.
Closes #644
Closes #645
Ref #642
Co-authored-by: Trite <60318513+Trite8Q1@users.noreply.github.com >
2022-01-02 15:26:42 -03:00
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
93dcb20e12
fix error in evaluating dynamic variables with newly created directory
2021-09-26 22:30:32 +09:00
a5ed8ad58c
Merge pull request #573 from masaushi/bugfix/issue-534-seg-fault-on-empty-command
...
Fix segmentation fault on nil slice element for issue #534
2021-09-25 09:46:47 -03:00
1de4b38766
fix segmentation fault on nil slice element
2021-09-15 00:01:33 +09:00
8f80fc4e2c
Issue #519 : Allow includes to be optional
2021-08-11 17:28:44 +01:00
3e16ca37bc
Updating version checking
2021-07-31 19:36:40 -03:00
97c85e39c3
Only run task once for #53
2021-07-31 19:36:40 -03:00
a7594740e3
Merge pull request #477 from mrngsht/sources_evaluation
...
Evaluate sources also if status is up-to-date
2021-07-10 21:54:47 -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
58c69e36a1
Evaluate sources also if status is up-to-date
2021-04-21 21:56:25 +09:00
c6ecf70377
Adding a --concurrency (-C) flag
2021-03-07 09:49:57 -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
299e27af15
Fix build
2021-01-07 11:39:36 -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
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
347c796662
add tests to previous
2020-11-13 16:24:34 -05:00
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
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
c6138a0660
#378 - allow for missing env files as they may be bootstrapped.
2020-10-03 16:39:58 -06:00