Skip to content

Commit

Permalink
Improvements on documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynering committed Aug 19, 2018
1 parent 491da0c commit 687e269
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ It aims to be simpler and easier to use then [GNU Make][make].
- [Go's template engine](#gos-template-engine)
- [Help](#help)
- [Silent mode](#silent-mode)
- [Dry Run Mode](#dry-run-mode)
- [Ignore errors](#ignore-errors)
- [Output syntax](#output-syntax)
- [Watch tasks](#watch-tasks-experimental)
- [Examples](#examples)
- [Alternative task runners](#alternative-task-runners)
Expand Down
41 changes: 41 additions & 0 deletions TASKFILE_VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,44 @@ tasks:
cmds:
- echo "{{.FOOBARBAZ}}"
```

## Version 2.1

Version 2.1 includes a global `output` option, to allow having more control
over how commands output are printed to the console
(see [documentation][output] for more info):

```yml
version: '2'
output: prefixed
tasks:
server:
cmds:
- go run main.go
prefix: server
```

From this version it's not also possible to ignore errors of a command or task
(check documentatio [here][ignore_errors]):

```yml
version: '2'
tasks:
example-1:
cmds:
- cmd: exit 1
ignore_error: true
- echo "This will be print"
example-2:
cmds:
- exit 1
- echo "This will be print"
ignore_error: true
```

[output]: https://github.com/go-task/task#output-syntax
[ignore_errors]: https://github.com/go-task/task#ignore-errors

0 comments on commit 687e269

Please sign in to comment.