From 3df49ab51ab10a5e777e5547983d20b22eebe38b Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Thu, 25 Jan 2024 14:55:36 +0000 Subject: [PATCH] docs: added reading from stdin section to usage --- docs/docs/usage.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/docs/usage.md b/docs/docs/usage.md index 8bbbb4ef06..c07ec91e6a 100644 --- a/docs/docs/usage.md +++ b/docs/docs/usage.md @@ -118,6 +118,18 @@ 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: + +```shell +task < <(cat ./Taskfile.yml) +# OR +cat ./Taskfile.yml | task +``` + ## Environment variables ### Task