-
Notifications
You must be signed in to change notification settings - Fork 113
/
sudo.go
30 lines (27 loc) · 911 Bytes
/
sudo.go
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
package sudo
import (
"github.com/rilldata/rill/cli/cmd/sudo/annotations"
"github.com/rilldata/rill/cli/cmd/sudo/project"
"github.com/rilldata/rill/cli/cmd/sudo/quota"
"github.com/rilldata/rill/cli/cmd/sudo/superuser"
"github.com/rilldata/rill/cli/cmd/sudo/user"
"github.com/rilldata/rill/cli/cmd/sudo/whitelist"
"github.com/rilldata/rill/cli/pkg/cmdutil"
"github.com/spf13/cobra"
)
func SudoCmd(ch *cmdutil.Helper) *cobra.Command {
sudoCmd := &cobra.Command{
Use: "sudo",
Short: "sudo commands for superusers",
Hidden: true,
}
sudoCmd.AddCommand(whitelist.WhitelistCmd(ch))
sudoCmd.AddCommand(superuser.SuperuserCmd(ch))
sudoCmd.AddCommand(user.UserCmd(ch))
sudoCmd.AddCommand(quota.QuotaCmd(ch))
sudoCmd.AddCommand(gitCloneCmd(ch))
sudoCmd.AddCommand(lookupCmd(ch))
sudoCmd.AddCommand(project.ProjectCmd(ch))
sudoCmd.AddCommand(annotations.AnnotationsCmd(ch))
return sudoCmd
}