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"
|
2023-09-14 10:14:13 +00:00
|
|
|
"github.com/databricks/cli/bundle/config"
|
|
|
|
"github.com/databricks/cli/bundle/scripts"
|
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{
|
2023-09-14 10:14:13 +00:00
|
|
|
scripts.Execute(config.ScriptPreInit),
|
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
|
|
|
}
|