Use spf13/cobra for docker top

This fix is part of the effort to convert commands to spf13/cobra #23211.

Thif fix coverted command `docker top` to use spf13/cobra

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2016-06-06 06:38:43 -07:00
parent fac425608a
commit 6829d53a08
2 changed files with 1 additions and 1 deletions

View File

@ -41,6 +41,7 @@ func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor {
container.NewRunCommand(dockerCli), container.NewRunCommand(dockerCli),
container.NewStartCommand(dockerCli), container.NewStartCommand(dockerCli),
container.NewStopCommand(dockerCli), container.NewStopCommand(dockerCli),
container.NewTopCommand(dockerCli),
container.NewUnpauseCommand(dockerCli), container.NewUnpauseCommand(dockerCli),
image.NewRemoveCommand(dockerCli), image.NewRemoveCommand(dockerCli),
image.NewSearchCommand(dockerCli), image.NewSearchCommand(dockerCli),

View File

@ -34,7 +34,6 @@ var DockerCommandUsage = []Command{
{"save", "Save one or more images to a tar archive"}, {"save", "Save one or more images to a tar archive"},
{"stats", "Display a live stream of container(s) resource usage statistics"}, {"stats", "Display a live stream of container(s) resource usage statistics"},
{"tag", "Tag an image into a repository"}, {"tag", "Tag an image into a repository"},
{"top", "Display the running processes of a container"},
{"update", "Update configuration of one or more containers"}, {"update", "Update configuration of one or more containers"},
{"version", "Show the Docker version information"}, {"version", "Show the Docker version information"},
{"wait", "Block until a container stops, then print its exit code"}, {"wait", "Block until a container stops, then print its exit code"},