From b4421407a0417a20d72d0fc1cb3386c1360ca65f Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Sun, 5 Jun 2016 17:25:22 -0700 Subject: [PATCH] Use spf13/cobra for docker wait This fix is part of the effort to convert commands to spf13/cobra #23211. Thif fix coverted command `docker wait` to use spf13/cobra Signed-off-by: Yong Tang --- cobraadaptor/adaptor.go | 1 + usage.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cobraadaptor/adaptor.go b/cobraadaptor/adaptor.go index 4ceb57757d..ee51435b87 100644 --- a/cobraadaptor/adaptor.go +++ b/cobraadaptor/adaptor.go @@ -42,6 +42,7 @@ func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor { container.NewStartCommand(dockerCli), container.NewStopCommand(dockerCli), container.NewUnpauseCommand(dockerCli), + container.NewWaitCommand(dockerCli), image.NewRemoveCommand(dockerCli), image.NewSearchCommand(dockerCli), network.NewNetworkCommand(dockerCli), diff --git a/usage.go b/usage.go index f6152e5c93..23c357e1cf 100644 --- a/usage.go +++ b/usage.go @@ -37,7 +37,6 @@ var DockerCommandUsage = []Command{ {"top", "Display the running processes of a container"}, {"update", "Update configuration of one or more containers"}, {"version", "Show the Docker version information"}, - {"wait", "Block until a container stops, then print its exit code"}, } // DockerCommands stores all the docker command