mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-16 23:20:41 +00:00
14 lines
295 B
Go
14 lines
295 B
Go
|
package transform
|
||
|
|
||
|
import "github.com/drone/drone-runtime/engine"
|
||
|
|
||
|
// Combine is a transform function that combines
|
||
|
// one or many transform functions.
|
||
|
func Combine(fns ...func(*engine.Spec)) func(*engine.Spec) {
|
||
|
return func(spec *engine.Spec) {
|
||
|
for _, fn := range fns {
|
||
|
fn(spec)
|
||
|
}
|
||
|
}
|
||
|
}
|