mirror of https://github.com/docker/cli.git
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 <github@gone.nl>
This commit is contained in:
parent
aaa912c9f7
commit
b66f4b2c21
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue