databricks-cli/cmd/bundle/generate.go

19 lines
390 B
Go

package bundle
import (
"github.com/databricks/cli/cmd/bundle/generate"
"github.com/spf13/cobra"
)
func newGenerateCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "generate",
Short: "Generate bundle configuration",
Long: "Generate bundle configuration",
PreRunE: ConfigureBundleWithVariables,
}
cmd.AddCommand(generate.NewGenerateJobCommand())
return cmd
}