mirror of
https://github.com/go-task/task.git
synced 2025-12-16 19:57:43 +01:00
Improve README a bit
This commit is contained in:
10
README.md
10
README.md
@@ -655,8 +655,8 @@ tasks:
|
|||||||
- echo "Hello World"
|
- echo "Hello World"
|
||||||
```
|
```
|
||||||
|
|
||||||
Task will abort the execution after running `exit 1` because the status code `1` stands for `EXIT_FAILURE`.
|
Task will abort the execution after running `exit 1` because the status code `1` stands for `EXIT_FAILURE`.
|
||||||
However it is possible to continue with execution using `ignore_errors`:
|
However it is possible to continue with execution using `ignore_error`:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
version: '2'
|
version: '2'
|
||||||
@@ -665,10 +665,14 @@ tasks:
|
|||||||
echo:
|
echo:
|
||||||
cmds:
|
cmds:
|
||||||
- cmd: exit 1
|
- cmd: exit 1
|
||||||
ignore_errors: true
|
ignore_error: true
|
||||||
- echo "Hello World"
|
- echo "Hello World"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`ignore_error` can also be set for a task, which mean errors will be supressed
|
||||||
|
for all commands. But keep in mind this option won't propagate to other tasks
|
||||||
|
called either by `deps` or `cmds`!
|
||||||
|
|
||||||
## Output syntax
|
## Output syntax
|
||||||
|
|
||||||
By default, Task just redirect the STDOUT and STDERR of the running commands
|
By default, Task just redirect the STDOUT and STDERR of the running commands
|
||||||
|
|||||||
Reference in New Issue
Block a user