浏览代码

Merge pull request #23676 from avsm/swarm-cli-consistency

`docker swarm`: more consistent CLI help
Tibor Vass 9 年之前
父节点
当前提交
2bd34b858d
共有 4 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      api/client/swarm/init.go
  2. 1 1
      api/client/swarm/join.go
  3. 1 1
      api/client/swarm/leave.go
  4. 1 1
      api/client/swarm/update.go

+ 1 - 1
api/client/swarm/init.go

@@ -28,7 +28,7 @@ func newInitCommand(dockerCli *client.DockerCli) *cobra.Command {
 
 
 	cmd := &cobra.Command{
 	cmd := &cobra.Command{
 		Use:   "init",
 		Use:   "init",
-		Short: "Initialize a Swarm.",
+		Short: "Initialize a Swarm",
 		Args:  cli.NoArgs,
 		Args:  cli.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {
 			return runInit(dockerCli, flags, opts)
 			return runInit(dockerCli, flags, opts)

+ 1 - 1
api/client/swarm/join.go

@@ -25,7 +25,7 @@ func newJoinCommand(dockerCli *client.DockerCli) *cobra.Command {
 
 
 	cmd := &cobra.Command{
 	cmd := &cobra.Command{
 		Use:   "join [OPTIONS] HOST:PORT",
 		Use:   "join [OPTIONS] HOST:PORT",
-		Short: "Join a Swarm as a node and/or manager.",
+		Short: "Join a Swarm as a node and/or manager",
 		Args:  cli.ExactArgs(1),
 		Args:  cli.ExactArgs(1),
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {
 			opts.remote = args[0]
 			opts.remote = args[0]

+ 1 - 1
api/client/swarm/leave.go

@@ -19,7 +19,7 @@ func newLeaveCommand(dockerCli *client.DockerCli) *cobra.Command {
 
 
 	cmd := &cobra.Command{
 	cmd := &cobra.Command{
 		Use:   "leave",
 		Use:   "leave",
-		Short: "Leave a Swarm.",
+		Short: "Leave a Swarm",
 		Args:  cli.NoArgs,
 		Args:  cli.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {
 			return runLeave(dockerCli, opts)
 			return runLeave(dockerCli, opts)

+ 1 - 1
api/client/swarm/update.go

@@ -27,7 +27,7 @@ func newUpdateCommand(dockerCli *client.DockerCli) *cobra.Command {
 
 
 	cmd := &cobra.Command{
 	cmd := &cobra.Command{
 		Use:   "update",
 		Use:   "update",
-		Short: "update the Swarm.",
+		Short: "Update the Swarm",
 		Args:  cli.NoArgs,
 		Args:  cli.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {
 			return runUpdate(dockerCli, flags, opts)
 			return runUpdate(dockerCli, flags, opts)