mirror of https://github.com/databricks/cli.git
66 lines
1.0 KiB
Go
66 lines
1.0 KiB
Go
|
package workspace
|
||
|
|
||
|
import (
|
||
|
"github.com/databricks/cli/cmd/root"
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// Groups returns an ordered list of command groups.
|
||
|
// The order matches the order used in the Databricks API explorer.
|
||
|
func Groups() []cobra.Group {
|
||
|
return []cobra.Group{
|
||
|
{
|
||
|
ID: "workspace",
|
||
|
Title: "Databricks Workspace",
|
||
|
},
|
||
|
{
|
||
|
ID: "compute",
|
||
|
Title: "Compute",
|
||
|
},
|
||
|
{
|
||
|
ID: "jobs",
|
||
|
Title: "Jobs",
|
||
|
},
|
||
|
{
|
||
|
ID: "pipelines",
|
||
|
Title: "Delta Live Tables",
|
||
|
},
|
||
|
{
|
||
|
ID: "ml",
|
||
|
Title: "Machine Learning",
|
||
|
},
|
||
|
{
|
||
|
ID: "serving",
|
||
|
Title: "Real-time Serving",
|
||
|
},
|
||
|
{
|
||
|
ID: "iam",
|
||
|
Title: "Identity and Access Management",
|
||
|
},
|
||
|
{
|
||
|
ID: "sql",
|
||
|
Title: "Databricks SQL",
|
||
|
},
|
||
|
{
|
||
|
ID: "catalog",
|
||
|
Title: "Unity Catalog",
|
||
|
},
|
||
|
{
|
||
|
ID: "sharing",
|
||
|
Title: "Delta Sharing",
|
||
|
},
|
||
|
{
|
||
|
ID: "settings",
|
||
|
Title: "Settings",
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
// Register groups with parent command
|
||
|
groups := Groups()
|
||
|
for i := range groups {
|
||
|
root.RootCmd.AddGroup(&groups[i])
|
||
|
}
|
||
|
}
|