// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package account

{{$excludes := list}}

import (
	"github.com/databricks/cli/cmd/root"
	"github.com/spf13/cobra"
    {{range .Services}}{{if and .IsAccounts (not .HasParent) (not .IsDataPlane)}}{{if not (in $excludes .KebabName) }}
	{{.SnakeName}} "github.com/databricks/cli/cmd/account/{{(.TrimPrefix "account").KebabName}}"{{end}}{{end}}{{end}}
)

func New() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "account",
		Short: `Databricks Account Commands`,
	}

	{{range .Services}}{{if and .IsAccounts (not .HasParent) (not .IsDataPlane)}}{{if not (in $excludes .KebabName) -}}
	cmd.AddCommand({{.SnakeName}}.New())
	{{end}}{{end}}{{end}}

	// Register all groups with the parent command.
	groups := Groups()
	for i := range groups {
		cmd.AddGroup(&groups[i])
	}

	return cmd
}
