1
0
mirror of https://github.com/go-task/task.git synced 2025-11-29 22:48:03 +02:00

chore: changelog and docs for #1623

This commit is contained in:
Pete Davison
2024-05-08 15:49:01 +00:00
parent 651033c5a7
commit 7fa06eedf4
2 changed files with 7 additions and 4 deletions

View File

@@ -121,13 +121,14 @@ tasks:
### Reading a Taskfile from stdin
Taskfile also supports reading from stdin. This is useful if you are generating
Taskfiles dynamically and don't want write them to disk. This works just like
any other program that supports stdin. For example:
Taskfiles dynamically and don't want write them to disk. To tell task to read
from stdin, you must specify the `-t/--taskfile` flag with the special `-`
value. You may then pipe into Task as you would any other program:
```shell
task < <(cat ./Taskfile.yml)
task -t - <(cat ./Taskfile.yml)
# OR
cat ./Taskfile.yml | task
cat ./Taskfile.yml | task -t -
```
## Environment variables