Skip to content

Commit 7fa06ee

Browse files
committed
chore: changelog and docs for #1623
1 parent 651033c commit 7fa06ee

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
(#1415, #1547 by @pd93).
99
- Refactored how Task reads, parses and merges Taskfiles using a DAG (#1563,
1010
#1607 by @pd93).
11+
- Fix a bug which stopped tasks from using `stdin` as input (#1593, #1623 by
12+
@pd03).
1113
- Fix error when a file or directory in the project contained a special char
1214
like `&`, `(` or `)` (#1551, #1584 by @andreynering).
1315
- Added alias `q` for template function `shellQuote` (#1601, #1603 by @vergenzt)

website/docs/usage.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,14 @@ tasks:
121121
### Reading a Taskfile from stdin
122122

123123
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:
124+
Taskfiles dynamically and don't want write them to disk. To tell task to read
125+
from stdin, you must specify the `-t/--taskfile` flag with the special `-`
126+
value. You may then pipe into Task as you would any other program:
126127

127128
```shell
128-
task < <(cat ./Taskfile.yml)
129+
task -t - <(cat ./Taskfile.yml)
129130
# OR
130-
cat ./Taskfile.yml | task
131+
cat ./Taskfile.yml | task -t -
131132
```
132133

133134
## Environment variables

0 commit comments

Comments
 (0)