Add hability silent all tasks

By add `silent: true` at the root of the Taskfile.
This commit is contained in:
Andrey Nering
2019-12-07 21:44:09 -03:00
parent ec934ba3c0
commit 4bdfe64afb
6 changed files with 23 additions and 3 deletions

View File

@@ -674,7 +674,7 @@ With silent mode on, the below will be print instead:
Print something
```
There's three ways to enable silent mode:
There are four ways to enable silent mode:
* At command level:
@@ -700,6 +700,19 @@ tasks:
silent: true
```
* Globally at Taskfile level:
```yaml
version: '2'
silent: true
tasks:
echo:
cmds:
- echo "Print something"
```
* Or globally with `--silent` or `-s` flag
If you want to suppress STDOUT instead, just redirect a command to `/dev/null`: