Add custom enhancements

This commit is contained in:
Jason Song
2022-09-21 14:26:19 +08:00
committed by Jason Song
parent c051090583
commit 7815eec33b
14 changed files with 830 additions and 2 deletions

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
}