Go/Task: Difference between revisions

From Fundamental Ramen
< Go
Jump to navigation Jump to search
Created page with "https://taskfile.dev/docs/guide"
 
 
(8 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 ==
 
{| class="wikitable" style="text-align:center;"
! || cmds || deps || preconditions
|-
| Parallel || ❌ || ✅ || ❌
|-
| Refer another task || ✅ || ✅ || ❌
|-
| Error message || ❌ || ❌ || ✅
|-
| stdout visible || ✅ || ✅ || ❌
|}
 
== Task Flow ==
 
<quickmmd name="go-task-flow">
flowchart TD
  A([Run task])
 
  D([Run deps in parallel])
  E1([Run 1st dependency])
  E2([Run 2nd dependency])
  En([Run nth dependency])
  F([All dependencies succeeded?])
 
  B([Run preconditions sequentially])
  C1([Run precondition 1])
  C2([Run precondition 2])
  Cn([Run precondition n])
 
  G([Run cmds sequentially])
  H1([Run 1st command in a dedicated shell])
  H2([Run 2nd command in a dedicated shell])
  Hn([Run nth command in a dedicated shell])
 
  Z1([Done])
  Z2([Leave task with error])
 
  A --> D
 
  D --> E1
  D --> E2
  D --> En
 
  E1 --> F
  E2 --> F
  En --> F
 
  F -->|No| Z2
  F -->|Yes| B
 
  B --> C1
 
  C1 -->|Succeeded| C2
  C1 -->|Failed| Z2
 
  C2 -->|Succeeded| Cn
  C2 -->|Failed| Z2
 
  Cn -->|Succeeded| G
  Cn -->|Failed| Z2
 
  G --> H1
 
  H1 -->|Succeeded| H2
  H1 -->|Failed| Z2
 
  H2 -->|Succeeded| Hn
  H2 -->|Failed| Z2
 
  Hn -->|Succeeded| Z1
  Hn -->|Failed| Z2
</quickmmd>

Latest revision as of 04:06, 29 September 2026

Comparison for cmds, deps & preconditions

cmds deps preconditions
Parallel ❌ ✅ ❌
Refer another task ✅ ✅ ❌
Error message ❌ ❌ ✅
stdout visible ✅ ✅ ❌

Task Flow