Skip to content

docs: correct stdin Taskfile command example#2738

Open
SergioChan wants to merge 1 commit intogo-task:mainfrom
SergioChan:fix-2610-stdin-doc
Open

docs: correct stdin Taskfile command example#2738
SergioChan wants to merge 1 commit intogo-task:mainfrom
SergioChan:fix-2610-stdin-doc

Conversation

@SergioChan
Copy link

Summary

  • fix the Reading a Taskfile from stdin guide example that used task -t - <(cat ./Taskfile.yml)
  • replace it with task -t - < ./Taskfile.yml, which correctly passes stdin to Task when using -t -
  • keep the existing piped example (cat ./Taskfile.yml | task -t -) unchanged

Testing

  • verified the docs snippet now contains the corrected stdin redirection command:
    • rg -n "task -t - < ./Taskfile.yml|cat ./Taskfile.yml \| task -t -" website/src/docs/guide.md
  • note: task CLI is not installed in this runner, so executable command validation was not run locally

Related

Fixes #2610

@trulede trulede added the area: docs Changes related to documentation. label Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Changes related to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Faulty documentation for reading Taskfile from stdin

2 participants