Skip to content

Commit

Permalink
chore: changelog and docs for #1623
Browse files Browse the repository at this point in the history
  • Loading branch information
pd93 committed May 8, 2024
1 parent 651033c commit 7fa06ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
(#1415, #1547 by @pd93).
- Refactored how Task reads, parses and merges Taskfiles using a DAG (#1563,
#1607 by @pd93).
- Fix a bug which stopped tasks from using `stdin` as input (#1593, #1623 by
@pd03).
- Fix error when a file or directory in the project contained a special char
like `&`, `(` or `)` (#1551, #1584 by @andreynering).
- Added alias `q` for template function `shellQuote` (#1601, #1603 by @vergenzt)
Expand Down
9 changes: 5 additions & 4 deletions website/docs/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fa06ee

Please sign in to comment.