Skip to content

Commit 5cfdce1

Browse files
committed
docs: added reading from stdin section to usage
1 parent 1ad49ce commit 5cfdce1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/docs/usage.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,18 @@ tasks:
118118

119119
:::
120120

121+
### Reading a Taskfile from stdin
122+
123+
Taskfile also supports reading from stdin. This is useful if you are generating
124+
Taskfiles dynamically and don't want write them to disk. This works just like
125+
any other program that supports stdin. For example:
126+
127+
```shell
128+
task < <(cat ./Taskfile.yml)
129+
# OR
130+
cat ./Taskfile.yml | task
131+
```
132+
121133
## Environment variables
122134

123135
### Task

0 commit comments

Comments
 (0)