flow improvements #52

Merged
vtolstov merged 4 commits from flow into master 2021-06-30 17:50:58 +03:00
Showing only changes of commit 7b1bfc80a4 - Show all commits

View File

@ -190,6 +190,7 @@ type StepOptions struct {
ID string
Context context.Context
Requires []string
Fallback string
}
type StepOption func(*StepOptions)
@ -213,3 +214,9 @@ func StepRequires(steps ...string) StepOption {
o.Requires = steps
}
}
func StepFallback(step string) StepOption {
return func(o *StepOptions) {
o.Fallback = step
}
}