mirror of
https://github.com/go-task/task.git
synced 2026-09-01 19:50:16 +02:00
b00d2bafb62f12b57aad02e8fadbccf3169cc554
completion/protocol_test.go built a `task` binary in TestMain and drove it through 21 subprocess spawns. Every one of its table cases already had a one-for-one in-process equivalent in internal/complete, and the wire format is asserted by TestWrite_Format. The one guarantee worth keeping was the `-t -` guard, which stops a keystroke from blocking on a Taskfile read from the terminal. It moves from cmd/task into complete.NeedsTaskfile, where it reads the flagset instead of the flags package global — testable in-process, and one less global read in cmd/task. TestCompletionShells moves to internal/complete unchanged, and the in-process wildcard fixture gains `matches-exactly-*`, the only pattern of testdata/wildcards it was missing. The binary path stays covered end to end by completion/tests/run.sh, which the CI completion job runs against five real shells on Linux and macOS.
Task: The Modern Task Runner
A fast, cross-platform build tool inspired by Make, designed for modern workflows.
Installation • Getting Started • Docs • Twitter • Bluesky • Mastodon • Discord
Gold Sponsors
|
|
|
|
Community Sponsors
|
|
|
| Package hosting provided by Cloudsmith. | Tooling provided by JetBrains. |
Languages
Go
83.8%
TypeScript
4.8%
Vue
4.5%
Shell
3.9%
Nushell
1.3%
Other
1.7%