2024-02-14 18:04:45 +00:00
|
|
|
package deployment
|
|
|
|
|
|
|
|
import (
|
2025-03-09 20:17:56 +00:00
|
|
|
"github.com/databricks/cli/clis"
|
2024-02-14 18:04:45 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2025-03-09 20:17:56 +00:00
|
|
|
func NewDeploymentCommand(hidden bool, cliType clis.CLIType) *cobra.Command {
|
2024-02-14 18:04:45 +00:00
|
|
|
cmd := &cobra.Command{
|
2025-03-09 20:17:56 +00:00
|
|
|
Use: "deployment",
|
|
|
|
Short: "Deployment related commands",
|
|
|
|
Long: "Deployment related commands",
|
|
|
|
Hidden: hidden,
|
2024-02-14 18:04:45 +00:00
|
|
|
}
|
|
|
|
|
2025-03-09 20:17:56 +00:00
|
|
|
cmd.AddCommand(newBindCommand(cliType))
|
|
|
|
cmd.AddCommand(newUnbindCommand(cliType))
|
2024-02-14 18:04:45 +00:00
|
|
|
return cmd
|
|
|
|
}
|