2024-01-17 14:26:33 +00:00
|
|
|
package bundle
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/databricks/cli/cmd/bundle/generate"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func newGenerateCommand() *cobra.Command {
|
2024-01-31 10:23:35 +00:00
|
|
|
var key string
|
|
|
|
|
2024-01-17 14:26:33 +00:00
|
|
|
cmd := &cobra.Command{
|
2024-03-28 10:32:34 +00:00
|
|
|
Use: "generate",
|
|
|
|
Short: "Generate bundle configuration",
|
|
|
|
Long: "Generate bundle configuration",
|
2024-01-17 14:26:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
cmd.AddCommand(generate.NewGenerateJobCommand())
|
2024-01-25 11:35:14 +00:00
|
|
|
cmd.AddCommand(generate.NewGeneratePipelineCommand())
|
2024-01-31 10:23:35 +00:00
|
|
|
cmd.PersistentFlags().StringVar(&key, "key", "", `resource key to use for the generated configuration`)
|
2024-01-17 14:26:33 +00:00
|
|
|
return cmd
|
|
|
|
}
|