Add custom enhancements

This commit is contained in:
Jason Song authored and Jason Song committed 2022-11-22 14:16:35 +08:00
1 parent c051090583
commit 7815eec33b
14 files changed
+830 -2

No files matched your search

+7
View File
@@ -164,6 +164,13 @@ func NewWorkflowPlanner(path string, noWorkflowRecurse bool) (WorkflowPlanner, e
return wp, nil
}
// CombineWorkflowPlanner combines workflows to a WorkflowPlanner
func CombineWorkflowPlanner(workflows ...*Workflow) WorkflowPlanner {
return &workflowPlanner{
workflows: workflows,
}
}
type workflowPlanner struct {
workflows []*Workflow
}