Go/Task: Difference between revisions
< Go
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
https://taskfile.dev/docs/guide | * https://taskfile.dev/docs/guide | ||
* https://taskfile.dev/docs/guide#using-programmatic-checks-to-cancel-the-execution-of-a-task-and-its-dependencies | |||
== Comparison for cmds, deps & preconditions == | == Comparison for cmds, deps & preconditions == | ||
{| class="wikitable" | {| class="wikitable" style="text-align:center;" | ||
! || cmds || deps || preconditions | ! || cmds || deps || preconditions | ||
|- | |- | ||
| Line 9: | Line 10: | ||
|- | |- | ||
| Refer another task || ✅ || ✅ || ❌ | | Refer another task || ✅ || ✅ || ❌ | ||
|- | |||
| Error message || ❌ || ❌ || ✅ | |||
|- | |||
| stdout visible || ✅ || ✅ || ❌ | |||
|} | |} | ||
| Line 17: | Line 22: | ||
A([Run task]) | A([Run task]) | ||
D[Run deps in parallel] | D([Run deps in parallel]) | ||
E1[Run 1st dependency] | E1([Run 1st dependency]) | ||
E2[Run 2nd dependency] | E2([Run 2nd dependency]) | ||
En[Run nth dependency] | En([Run nth dependency]) | ||
F | F([All dependencies succeeded?]) | ||
B[Run preconditions sequentially] | B([Run preconditions sequentially]) | ||
C1[Run precondition 1] | C1([Run precondition 1]) | ||
C2[Run precondition 2] | C2([Run precondition 2]) | ||
Cn[Run precondition n] | Cn([Run precondition n]) | ||
G[Run cmds sequentially] | G([Run cmds sequentially]) | ||
H1[Run 1st command in a dedicated shell] | H1([Run 1st command in a dedicated shell]) | ||
H2[Run 2nd command in a dedicated shell] | H2([Run 2nd command in a dedicated shell]) | ||
Hn[Run nth command in a dedicated shell] | Hn([Run nth command in a dedicated shell]) | ||
Z1([Done]) | Z1([Done]) | ||
Latest revision as of 04:06, 29 September 2026
- https://taskfile.dev/docs/guide
- https://taskfile.dev/docs/guide#using-programmatic-checks-to-cancel-the-execution-of-a-task-and-its-dependencies
Comparison for cmds, deps & preconditions
| cmds | deps | preconditions | |
|---|---|---|---|
| Parallel | ❌ | ✅ | ❌ |
| Refer another task | ✅ | ✅ | ❌ |
| Error message | ❌ | ❌ | ✅ |
| stdout visible | ✅ | ✅ | ❌ |
Task Flow