From 65fed1bca2a23d22ee7299bd45e47d4f50cd3269 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Sun, 5 Jun 2016 15:13:55 -0700 Subject: [PATCH] Use spf13/cobra for docker diff This fix is part of the effort to convert commands to spf13/cobra #23211. Thif fix coverted command `docker diff` 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 cc74cce34c..ab1b0c6cc2 100644 --- a/cobraadaptor/adaptor.go +++ b/cobraadaptor/adaptor.go @@ -34,6 +34,7 @@ func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor { rootCmd.SetOutput(stdout) rootCmd.AddCommand( container.NewCreateCommand(dockerCli), + container.NewDiffCommand(dockerCli), container.NewExportCommand(dockerCli), container.NewRunCommand(dockerCli), container.NewStopCommand(dockerCli), diff --git a/usage.go b/usage.go index 86bd1fcec4..99d7b6d707 100644 --- a/usage.go +++ b/usage.go @@ -12,7 +12,6 @@ var DockerCommandUsage = []Command{ {"build", "Build an image from a Dockerfile"}, {"commit", "Create a new image from a container's changes"}, {"cp", "Copy files/folders between a container and the local filesystem"}, - {"diff", "Inspect changes on a container's filesystem"}, {"events", "Get real time events from the server"}, {"exec", "Run a command in a running container"}, {"history", "Show the history of an image"},