forked from ovh/cds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.go
More file actions
43 lines (37 loc) · 760 Bytes
/
admin.go
File metadata and controls
43 lines (37 loc) · 760 Bytes
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
package main
import (
"github.com/spf13/cobra"
"github.com/ovh/cds/cli"
)
var adminCmd = cli.Command{
Name: "admin",
Short: "Manage CDS (admin only)",
}
func adminCommands() []*cobra.Command {
return []*cobra.Command{
adminDatabase(),
adminServices(),
adminCdn(),
adminRepositories(),
adminHooks(),
adminOrganization(),
adminIntegrationModels(),
adminMaintenance(),
adminMetadata(),
adminMigrations(),
adminPlugins(),
adminCurl(),
adminFeatures(),
adminWorkflows(),
adminUsers(),
}
}
func admin() *cobra.Command { return cli.NewCommand(adminCmd, nil, adminCommands()) }
func adminShell() *cobra.Command {
return cli.NewCommand(adminCmd, nil, append(adminCommands(),
usr(),
group(),
worker(),
health(),
))
}