Skip to content

docs: correct stdin Taskfile command example#2738

Merged
vmaerten merged 1 commit intogo-task:mainfrom
SergioChan:fix-2610-stdin-doc
Mar 18, 2026
Merged

docs: correct stdin Taskfile command example#2738
vmaerten merged 1 commit intogo-task:mainfrom
SergioChan:fix-2610-stdin-doc

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

Labels

area: docs Changes related to documentation. state: reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Faulty documentation for reading Taskfile from stdin

3 participants