add fallback
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
9fd8f581ac
commit
7b1bfc80a4
@ -190,6 +190,7 @@ type StepOptions struct {
|
|||||||
ID string
|
ID string
|
||||||
Context context.Context
|
Context context.Context
|
||||||
Requires []string
|
Requires []string
|
||||||
|
Fallback string
|
||||||
}
|
}
|
||||||
|
|
||||||
type StepOption func(*StepOptions)
|
type StepOption func(*StepOptions)
|
||||||
@ -213,3 +214,9 @@ func StepRequires(steps ...string) StepOption {
|
|||||||
o.Requires = steps
|
o.Requires = steps
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func StepFallback(step string) StepOption {
|
||||||
|
return func(o *StepOptions) {
|
||||||
|
o.Fallback = step
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user