Remove the enterprise commands section in sensuctl help usage
@@ -42,15 +42,6 @@ Management Commands:
{{- end}}
{{- end}}
-{{- if hasEnterpriseSubCommands . }}
-
-Enterprise Commands:
-
-{{- range enterpriseSubCommands . }}
- {{rpad .Name .NamePadding }} {{.Short}}
-{{- end}}
-{{- end}}
-
{{- if .HasSubCommands }}
Run '{{.CommandPath}} COMMAND --help' for more information on a command.
@@ -59,8 +50,6 @@ Run '{{.CommandPath}} COMMAND --help' for more information on a command.
`
func init() {
- cobra.AddTemplateFunc("enterpriseSubCommands", enterpriseSubCommands)
- cobra.AddTemplateFunc("hasEnterpriseSubCommands", hasEnterpriseSubCommands)
cobra.AddTemplateFunc("hasOperationalSubCommands", hasOperationalSubCommands)
cobra.AddTemplateFunc("hasManagementSubCommands", hasManagementSubCommands)
cobra.AddTemplateFunc("operationalSubCommands", operationalSubCommands)
@@ -69,14 +58,6 @@ func init() {
cobra.AddTemplateFunc("wrappedLocalFlagUsages", wrappedLocalFlagUsages)
}
-func enterpriseSubCommands(cmd *cobra.Command) []*cobra.Command {
- return []*cobra.Command{}
-}
-
-func hasEnterpriseSubCommands(cmd *cobra.Command) bool {
- return false
-}
-
func hasOperationalSubCommands(cmd *cobra.Command) bool {
return len(operationalSubCommands(cmd)) > 0
}
