mirror of https://github.com/databricks/cli.git
43 lines
708 B
Go
43 lines
708 B
Go
|
package account
|
||
|
|
||
|
import "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: "iam",
|
||
|
Title: "Identity and Access Management",
|
||
|
},
|
||
|
{
|
||
|
ID: "catalog",
|
||
|
Title: "Unity Catalog",
|
||
|
},
|
||
|
{
|
||
|
ID: "settings",
|
||
|
Title: "Settings",
|
||
|
},
|
||
|
{
|
||
|
ID: "provisioning",
|
||
|
Title: "Provisioning",
|
||
|
},
|
||
|
{
|
||
|
ID: "billing",
|
||
|
Title: "Billing",
|
||
|
},
|
||
|
{
|
||
|
ID: "oauth2",
|
||
|
Title: "OAuth",
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
// Register groups with parent command
|
||
|
groups := Groups()
|
||
|
for i := range groups {
|
||
|
accountCmd.AddGroup(&groups[i])
|
||
|
}
|
||
|
}
|