2022-11-18 09:57:31 +00:00
|
|
|
package mutator
|
|
|
|
|
2022-11-28 09:59:43 +00:00
|
|
|
import (
|
2023-05-16 16:35:39 +00:00
|
|
|
"github.com/databricks/cli/bundle"
|
2022-11-28 09:59:43 +00:00
|
|
|
)
|
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(),
|
2023-04-26 14:54:36 +00:00
|
|
|
LoadGitDetails(),
|
2022-11-18 09:57:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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))
|
|
|
|
}
|