From 0ec78739ac7d8ec1579d1d4fd63cd207dc56e7c8 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Fri, 17 Jun 2016 16:26:47 +0100 Subject: [PATCH] `docker swarm`: more consistent CLI help This changes `docker swarm help` to be consistent with capitals and removes full stops. Before: ``` Commands: init Initialize a Swarm. join Join a Swarm as a node and/or manager. update update the Swarm. leave Leave a Swarm. inspect Inspect the Swarm ``` After: ``` Commands: init Initialize a Swarm join Join a Swarm as a node and/or manager update Update the Swarm leave Leave a Swarm inspect Inspect the Swarm ``` Signed-off-by: Anil Madhavapeddy --- api/client/swarm/init.go | 2 +- api/client/swarm/join.go | 2 +- api/client/swarm/leave.go | 2 +- api/client/swarm/update.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/client/swarm/init.go b/api/client/swarm/init.go index d16c09793b23217b4f2ad857bdb62a80961fd313..1f403ae4a16e0cf2dfd3e4aed6e76352abfdc591 100644 --- a/api/client/swarm/init.go +++ b/api/client/swarm/init.go @@ -28,7 +28,7 @@ func newInitCommand(dockerCli *client.DockerCli) *cobra.Command { cmd := &cobra.Command{ Use: "init", - Short: "Initialize a Swarm.", + Short: "Initialize a Swarm", Args: cli.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { return runInit(dockerCli, flags, opts) diff --git a/api/client/swarm/join.go b/api/client/swarm/join.go index 346445f783d80df96c77bca60bc05d20ae94fa3b..1bb9ae04b37ce55c2a5a4d4a0048fddd909a42f1 100644 --- a/api/client/swarm/join.go +++ b/api/client/swarm/join.go @@ -25,7 +25,7 @@ func newJoinCommand(dockerCli *client.DockerCli) *cobra.Command { cmd := &cobra.Command{ 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), RunE: func(cmd *cobra.Command, args []string) error { opts.remote = args[0] diff --git a/api/client/swarm/leave.go b/api/client/swarm/leave.go index e3f8fbfa576c20e29bf89e7736ce59ea32098f2a..50f05c7a76e430ec427c8438834ef50bcf9a1e1d 100644 --- a/api/client/swarm/leave.go +++ b/api/client/swarm/leave.go @@ -19,7 +19,7 @@ func newLeaveCommand(dockerCli *client.DockerCli) *cobra.Command { cmd := &cobra.Command{ Use: "leave", - Short: "Leave a Swarm.", + Short: "Leave a Swarm", Args: cli.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { return runLeave(dockerCli, opts) diff --git a/api/client/swarm/update.go b/api/client/swarm/update.go index c3eff5d43d346fd1ed9b38357fa333abad84def6..a77112da441677d7943ab28a1ee87ee7f8c6251a 100644 --- a/api/client/swarm/update.go +++ b/api/client/swarm/update.go @@ -27,7 +27,7 @@ func newUpdateCommand(dockerCli *client.DockerCli) *cobra.Command { cmd := &cobra.Command{ Use: "update", - Short: "update the Swarm.", + Short: "Update the Swarm", Args: cli.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { return runUpdate(dockerCli, flags, opts)