Working examples for the Task Engine.
task := tasks.NewFileOperationsTask(logger, "/tmp/project")
err := task.Run(context.Background())task := tasks.NewDockerSetupTask(logger, "/path/to/compose")
err := task.Run(context.Background())task := tasks.NewPackageManagementTask(logger, []string{"git", "curl"})
err := task.Run(context.Background())parameter_passing_examples.md - Complete examples of action parameter passing:
- File processing pipelines
- Docker workflows
- Multi-task workflows
- Testing and performance
- Parameters:
task_engine.ActionOutput(),task_engine.TaskOutput(),task_engine.ActionResult(),task_engine.TaskResult() - Global Context: Share data between tasks using
TaskManager - Output Methods & Results: Implement
GetOutput()in actions; implementResultProvideror define a taskResultBuilderfor rich results
See README.md for quick start and ACTIONS.md for available actions.