Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func main() {

- **Tasks**: Collections of actions that execute sequentially
- **Actions**: Individual operations (file, Docker, system)
- **Parameters**: Pass data between actions using `ActionOutput()` and `TaskOutput()`
- **Parameters**: Pass data between actions using `ActionOutput()` and `TaskOutput()`, and fetch rich results using `ActionResult()` and `TaskResult()`
- **Context**: Share data across tasks with `TaskManager`

## Built-in Actions
Expand All @@ -51,7 +51,7 @@ See [ACTIONS.md](ACTIONS.md) for complete list.

## Parameter Passing

Actions can reference outputs from previous actions:
Actions can reference outputs from previous actions, results from actions, and results from tasks:

```go
// Reference action output
Expand All @@ -70,6 +70,12 @@ docker.NewDockerRunAction(
[]string{"-p", "8080:8080"},
logger,
)

// Reference action result (from an action implementing ResultProvider)
useChecksum := task_engine.ActionResultField("download-artifact", "checksum")

// Reference task result (from a task implementing ResultProvider or using ResultBuilder)
preflightMode := task_engine.TaskResultField("preflight", "UpdateMode")
```

## Task Management
Expand Down
Loading
Loading