2022-11-18 09:57:31 +00:00
|
|
|
package mutator
|
|
|
|
|
2022-11-28 09:59:43 +00:00
|
|
|
import (
|
|
|
|
"github.com/databricks/bricks/bundle"
|
|
|
|
)
|
2022-11-18 09:57:31 +00:00
|
|
|
|
2022-11-28 09:59:43 +00:00
|
|
|
func DefaultMutators() []bundle.Mutator {
|
|
|
|
return []bundle.Mutator{
|
2022-11-18 09:57:31 +00:00
|
|
|
DefineDefaultInclude(),
|
|
|
|
ProcessRootIncludes(),
|
|
|
|
DefineDefaultEnvironment(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-28 09:59:43 +00:00
|
|
|
func DefaultMutatorsForEnvironment(env string) []bundle.Mutator {
|
2022-11-18 09:57:31 +00:00
|
|
|
return append(DefaultMutators(), SelectEnvironment(env))
|
|
|
|
}
|