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
|
|
|
ProcessRootIncludes(),
|
2023-08-17 15:22:32 +00:00
|
|
|
DefineDefaultTarget(),
|
2023-04-26 14:54:36 +00:00
|
|
|
LoadGitDetails(),
|
2022-11-18 09:57:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-17 15:22:32 +00:00
|
|
|
func DefaultMutatorsForTarget(env string) []bundle.Mutator {
|
|
|
|
return append(DefaultMutators(), SelectTarget(env))
|
2022-11-18 09:57:31 +00:00
|
|
|
}
|