diff --git a/README.md b/README.md index 5a8cee6013..968b01b3e5 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/TASKFILE_VERSIONS.md b/TASKFILE_VERSIONS.md index e45043acef..00ab3cd15f 100644 --- a/TASKFILE_VERSIONS.md +++ b/TASKFILE_VERSIONS.md @@ -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