From b66f4b2c21995590f1ad5b397ac7e40e721c4e14 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 8 Apr 2022 16:57:10 +0200 Subject: [PATCH] cli: use "Swarm Subcommands" instead of "Orchestrator" Now that we no longer support kubernetes as orchestrator in the cli itself, we may as well be using "Swarm" for these to make it clearer what these commands are for :) Signed-off-by: Sebastiaan van Stijn --- cli/cobra.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/cobra.go b/cli/cobra.go index 930ae5531f..cb1cf8527a 100644 --- a/cli/cobra.go +++ b/cli/cobra.go @@ -34,7 +34,7 @@ func setupCommonRootCommand(rootCmd *cobra.Command) (*cliflags.ClientOptions, *p cobra.AddTemplateFunc("hasSubCommands", hasSubCommands) cobra.AddTemplateFunc("hasTopCommands", hasTopCommands) cobra.AddTemplateFunc("hasManagementSubCommands", hasManagementSubCommands) - cobra.AddTemplateFunc("hasOrchestratorSubCommands", hasOrchestratorSubCommands) + cobra.AddTemplateFunc("hasSwarmSubCommands", hasSwarmSubCommands) cobra.AddTemplateFunc("hasInvalidPlugins", hasInvalidPlugins) cobra.AddTemplateFunc("topCommands", topCommands) cobra.AddTemplateFunc("operationSubCommands", operationSubCommands) @@ -246,7 +246,7 @@ func hasManagementSubCommands(cmd *cobra.Command) bool { return len(managementSubCommands(cmd)) > 0 } -func hasOrchestratorSubCommands(cmd *cobra.Command) bool { +func hasSwarmSubCommands(cmd *cobra.Command) bool { return len(orchestratorSubCommands(cmd)) > 0 } @@ -431,9 +431,9 @@ Management Commands: {{- end}} {{- end}} -{{- if hasOrchestratorSubCommands . }} +{{- if hasSwarmSubCommands . }} -Orchestration Commands: +Swarm Commands: {{- range orchestratorSubCommands . }} {{rpad (decoratedName .) (add .NamePadding 1)}}{{.Short}}{{ if isPlugin .}} {{vendorAndVersion .}}{{ end}}