mirror of https://github.com/databricks/cli.git
21 lines
453 B
Go
21 lines
453 B
Go
package mutator
|
|
|
|
import (
|
|
"github.com/databricks/cli/bundle"
|
|
"github.com/databricks/cli/bundle/config"
|
|
"github.com/databricks/cli/bundle/scripts"
|
|
)
|
|
|
|
func DefaultMutators() []bundle.Mutator {
|
|
return []bundle.Mutator{
|
|
scripts.Execute(config.ScriptPreInit),
|
|
ProcessRootIncludes(),
|
|
DefineDefaultTarget(),
|
|
LoadGitDetails(),
|
|
}
|
|
}
|
|
|
|
func DefaultMutatorsForTarget(env string) []bundle.Mutator {
|
|
return append(DefaultMutators(), SelectTarget(env))
|
|
}
|