docs: correct stdin Taskfile command example by SergioChan · Pull Request #2738 · go-task/task

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@SergioChan

Copy link Copy Markdown

Contributor

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 area: docs

Changes related to documentation.

state: reviewed labels

Mar 12, 2026
Copy link Copy Markdown

Contributor

@trulede trulede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction seems reasonable.
Doc change only.

Copy link Copy Markdown

Member

@vmaerten vmaerten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@vmaerten vmaerten enabled auto-merge (squash)

March 18, 2026 20:46

@vmaerten vmaerten merged commit 19d8fae into go-task:main

Mar 18, 2026

15 checks passed

Copilot AI pushed a commit to libor-m/task that referenced this pull request

Mar 27, 2026
Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vmaerten vmaerten vmaerten approved these changes

+1 more reviewer

@trulede trulede trulede approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

area: docs

Changes related to documentation.

state: reviewed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Faulty documentation for reading Taskfile from stdin

3 participants

@SergioChan @vmaerten @trulede