MCPcopy Create free account
hub / github.com/rilldata/rill / SudoCmd

Function SudoCmd

cli/cmd/sudo/sudo.go:19–42  ·  view source on GitHub ↗
(ch *cmdutil.Helper)

Source from the content-addressed store, hash-verified

17)
18
19func SudoCmd(ch *cmdutil.Helper) *cobra.Command {
20 internalGroupID := ""
21 sudoCmd := &cobra.Command{
22 Use: "sudo",
23 Short: "sudo commands for superusers",
24 Hidden: !ch.IsDev(),
25 GroupID: internalGroupID,
26 }
27 sudoCmd.AddCommand(lookupCmd(ch))
28 sudoCmd.AddCommand(embed.EmbedCmd(ch))
29 sudoCmd.AddCommand(org.OrgCmd(ch))
30 sudoCmd.AddCommand(project.ProjectCmd(ch))
31 sudoCmd.AddCommand(user.UserCmd(ch))
32 sudoCmd.AddCommand(superuser.SuperuserCmd(ch))
33 sudoCmd.AddCommand(billing.BillingCmd(ch))
34 sudoCmd.AddCommand(quota.QuotaCmd(ch))
35 sudoCmd.AddCommand(whitelist.WhitelistCmd(ch))
36 sudoCmd.AddCommand(annotations.AnnotationsCmd(ch))
37 sudoCmd.AddCommand(cloneCmd(ch))
38 sudoCmd.AddCommand(runtime.RuntimeCmd(ch))
39 sudoCmd.AddCommand(virtualfiles.VirtualFilesCmd(ch))
40
41 return sudoCmd
42}

Callers 1

RootCmdFunction · 0.92

Calls 14

EmbedCmdFunction · 0.92
OrgCmdFunction · 0.92
ProjectCmdFunction · 0.92
UserCmdFunction · 0.92
SuperuserCmdFunction · 0.92
BillingCmdFunction · 0.92
QuotaCmdFunction · 0.92
WhitelistCmdFunction · 0.92
AnnotationsCmdFunction · 0.92
RuntimeCmdFunction · 0.92
VirtualFilesCmdFunction · 0.92
lookupCmdFunction · 0.85

Tested by

no test coverage detected