(ch *cmdutil.Helper)
| 17 | ) |
| 18 | |
| 19 | func 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 | } |
no test coverage detected