-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathcmd.go
More file actions
101 lines (92 loc) · 4.76 KB
/
cmd.go
File metadata and controls
101 lines (92 loc) · 4.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package account
import (
"github.com/databricks/cli/libs/cmdgroup"
"github.com/spf13/cobra"
account_access_control "github.com/databricks/cli/cmd/account/access-control"
billable_usage "github.com/databricks/cli/cmd/account/billable-usage"
budget_policy "github.com/databricks/cli/cmd/account/budget-policy"
budgets "github.com/databricks/cli/cmd/account/budgets"
credentials "github.com/databricks/cli/cmd/account/credentials"
custom_app_integration "github.com/databricks/cli/cmd/account/custom-app-integration"
encryption_keys "github.com/databricks/cli/cmd/account/encryption-keys"
account_federation_policy "github.com/databricks/cli/cmd/account/federation-policy"
account_groups_v2 "github.com/databricks/cli/cmd/account/groups-v2"
account_iam_v2 "github.com/databricks/cli/cmd/account/iam-v2"
account_ip_access_lists "github.com/databricks/cli/cmd/account/ip-access-lists"
log_delivery "github.com/databricks/cli/cmd/account/log-delivery"
account_metastore_assignments "github.com/databricks/cli/cmd/account/metastore-assignments"
account_metastores "github.com/databricks/cli/cmd/account/metastores"
network_connectivity "github.com/databricks/cli/cmd/account/network-connectivity"
network_policies "github.com/databricks/cli/cmd/account/network-policies"
networks "github.com/databricks/cli/cmd/account/networks"
o_auth_published_apps "github.com/databricks/cli/cmd/account/o-auth-published-apps"
private_access "github.com/databricks/cli/cmd/account/private-access"
published_app_integration "github.com/databricks/cli/cmd/account/published-app-integration"
service_principal_federation_policy "github.com/databricks/cli/cmd/account/service-principal-federation-policy"
service_principal_secrets "github.com/databricks/cli/cmd/account/service-principal-secrets"
account_service_principals_v2 "github.com/databricks/cli/cmd/account/service-principals-v2"
account_settings "github.com/databricks/cli/cmd/account/settings"
account_settings_v2 "github.com/databricks/cli/cmd/account/settings-v2"
storage "github.com/databricks/cli/cmd/account/storage"
account_storage_credentials "github.com/databricks/cli/cmd/account/storage-credentials"
usage_dashboards "github.com/databricks/cli/cmd/account/usage-dashboards"
account_users_v2 "github.com/databricks/cli/cmd/account/users-v2"
vpc_endpoints "github.com/databricks/cli/cmd/account/vpc-endpoints"
workspace_assignment "github.com/databricks/cli/cmd/account/workspace-assignment"
workspace_network_configuration "github.com/databricks/cli/cmd/account/workspace-network-configuration"
workspaces "github.com/databricks/cli/cmd/account/workspaces"
account_groups "github.com/databricks/cli/cmd/account/groups"
account_service_principals "github.com/databricks/cli/cmd/account/service-principals"
account_users "github.com/databricks/cli/cmd/account/users"
)
func New() *cobra.Command {
cmd := &cobra.Command{
Use: "account",
Short: `Databricks Account Commands`,
}
cmd.AddCommand(account_access_control.New())
cmd.AddCommand(billable_usage.New())
cmd.AddCommand(budget_policy.New())
cmd.AddCommand(credentials.New())
cmd.AddCommand(custom_app_integration.New())
cmd.AddCommand(encryption_keys.New())
cmd.AddCommand(account_federation_policy.New())
cmd.AddCommand(account_groups_v2.New())
cmd.AddCommand(account_ip_access_lists.New())
cmd.AddCommand(log_delivery.New())
cmd.AddCommand(account_metastore_assignments.New())
cmd.AddCommand(account_metastores.New())
cmd.AddCommand(network_connectivity.New())
cmd.AddCommand(network_policies.New())
cmd.AddCommand(networks.New())
cmd.AddCommand(o_auth_published_apps.New())
cmd.AddCommand(private_access.New())
cmd.AddCommand(published_app_integration.New())
cmd.AddCommand(service_principal_federation_policy.New())
cmd.AddCommand(service_principal_secrets.New())
cmd.AddCommand(account_service_principals_v2.New())
cmd.AddCommand(account_settings.New())
cmd.AddCommand(account_settings_v2.New())
cmd.AddCommand(storage.New())
cmd.AddCommand(account_storage_credentials.New())
cmd.AddCommand(usage_dashboards.New())
cmd.AddCommand(account_users_v2.New())
cmd.AddCommand(vpc_endpoints.New())
cmd.AddCommand(workspace_assignment.New())
cmd.AddCommand(workspace_network_configuration.New())
cmd.AddCommand(workspaces.New())
cmd.AddCommand(account_iam_v2.New())
cmd.AddCommand(budgets.New())
cmd.AddCommand(account_groups.New())
cmd.AddCommand(account_service_principals.New())
cmd.AddCommand(account_users.New())
// Register command groups, filtering out empty groups or groups with only hidden commands.
allGroups := Groups()
allCommands := cmd.Commands()
filteredGroups := cmdgroup.FilterGroups(allGroups, allCommands)
for i := range filteredGroups {
cmd.AddGroup(&filteredGroups[i])
}
return cmd
}