Skip to content

Commit 687e269

Browse files
committed
Improvements on documentation
1 parent 491da0c commit 687e269

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ It aims to be simpler and easier to use then [GNU Make][make].
2727
- [Go's template engine](#gos-template-engine)
2828
- [Help](#help)
2929
- [Silent mode](#silent-mode)
30+
- [Dry Run Mode](#dry-run-mode)
31+
- [Ignore errors](#ignore-errors)
32+
- [Output syntax](#output-syntax)
3033
- [Watch tasks](#watch-tasks-experimental)
3134
- [Examples](#examples)
3235
- [Alternative task runners](#alternative-task-runners)

TASKFILE_VERSIONS.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,44 @@ tasks:
8989
cmds:
9090
- echo "{{.FOOBARBAZ}}"
9191
```
92+
93+
## Version 2.1
94+
95+
Version 2.1 includes a global `output` option, to allow having more control
96+
over how commands output are printed to the console
97+
(see [documentation][output] for more info):
98+
99+
```yml
100+
version: '2'
101+
102+
output: prefixed
103+
104+
tasks:
105+
server:
106+
cmds:
107+
- go run main.go
108+
prefix: server
109+
```
110+
111+
From this version it's not also possible to ignore errors of a command or task
112+
(check documentatio [here][ignore_errors]):
113+
114+
```yml
115+
version: '2'
116+
117+
tasks:
118+
example-1:
119+
cmds:
120+
- cmd: exit 1
121+
ignore_error: true
122+
- echo "This will be print"
123+
124+
example-2:
125+
cmds:
126+
- exit 1
127+
- echo "This will be print"
128+
ignore_error: true
129+
```
130+
131+
[output]: https://github.com/go-task/task#output-syntax
132+
[ignore_errors]: https://github.com/go-task/task#ignore-errors

0 commit comments

Comments
 (0)