Move the search command to the registry package.

And move it back to the top-level command.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-08-29 09:59:41 -04:00
parent accc5d5bd4
commit 68b7f55a45
3 changed files with 2 additions and 3 deletions

View File

@ -33,6 +33,7 @@ func AddCommands(cmd *cobra.Command, dockerCli *command.DockerCli) {
system.NewEventsCommand(dockerCli), system.NewEventsCommand(dockerCli),
registry.NewLoginCommand(dockerCli), registry.NewLoginCommand(dockerCli),
registry.NewLogoutCommand(dockerCli), registry.NewLogoutCommand(dockerCli),
registry.NewSearchCommand(dockerCli),
system.NewVersionCommand(dockerCli), system.NewVersionCommand(dockerCli),
volume.NewVolumeCommand(dockerCli), volume.NewVolumeCommand(dockerCli),
system.NewInfoCommand(dockerCli), system.NewInfoCommand(dockerCli),
@ -66,7 +67,6 @@ func AddCommands(cmd *cobra.Command, dockerCli *command.DockerCli) {
hide(image.NewPushCommand(dockerCli)), hide(image.NewPushCommand(dockerCli)),
hide(image.NewRemoveCommand(dockerCli)), hide(image.NewRemoveCommand(dockerCli)),
hide(image.NewSaveCommand(dockerCli)), hide(image.NewSaveCommand(dockerCli)),
hide(image.NewSearchCommand(dockerCli)),
hide(image.NewTagCommand(dockerCli)), hide(image.NewTagCommand(dockerCli)),
hide(system.NewInspectCommand(dockerCli)), hide(system.NewInspectCommand(dockerCli)),
) )

View File

@ -27,7 +27,6 @@ func NewImageCommand(dockerCli *command.DockerCli) *cobra.Command {
NewPullCommand(dockerCli), NewPullCommand(dockerCli),
NewPushCommand(dockerCli), NewPushCommand(dockerCli),
NewSaveCommand(dockerCli), NewSaveCommand(dockerCli),
NewSearchCommand(dockerCli),
NewTagCommand(dockerCli), NewTagCommand(dockerCli),
newListCommand(dockerCli), newListCommand(dockerCli),
newRemoveCommand(dockerCli), newRemoveCommand(dockerCli),

View File

@ -1,4 +1,4 @@
package image package registry
import ( import (
"fmt" "fmt"