From dda198761b9638ff1a0f5a4522751267d2faca8a Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Mon, 29 Aug 2016 09:59:41 -0400 Subject: [PATCH] Move the search command to the registry package. And move it back to the top-level command. Signed-off-by: Daniel Nephin --- cli/command/commands/commands.go | 2 +- cli/command/image/cmd.go | 1 - cli/command/{image => registry}/search.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) rename cli/command/{image => registry}/search.go (99%) diff --git a/cli/command/commands/commands.go b/cli/command/commands/commands.go index 95615fe0b5..cace1b152c 100644 --- a/cli/command/commands/commands.go +++ b/cli/command/commands/commands.go @@ -33,6 +33,7 @@ func AddCommands(cmd *cobra.Command, dockerCli *command.DockerCli) { system.NewEventsCommand(dockerCli), registry.NewLoginCommand(dockerCli), registry.NewLogoutCommand(dockerCli), + registry.NewSearchCommand(dockerCli), system.NewVersionCommand(dockerCli), volume.NewVolumeCommand(dockerCli), system.NewInfoCommand(dockerCli), @@ -66,7 +67,6 @@ func AddCommands(cmd *cobra.Command, dockerCli *command.DockerCli) { hide(image.NewPushCommand(dockerCli)), hide(image.NewRemoveCommand(dockerCli)), hide(image.NewSaveCommand(dockerCli)), - hide(image.NewSearchCommand(dockerCli)), hide(image.NewTagCommand(dockerCli)), hide(system.NewInspectCommand(dockerCli)), ) diff --git a/cli/command/image/cmd.go b/cli/command/image/cmd.go index e04c4c23f3..4a7d2b3fd9 100644 --- a/cli/command/image/cmd.go +++ b/cli/command/image/cmd.go @@ -27,7 +27,6 @@ func NewImageCommand(dockerCli *command.DockerCli) *cobra.Command { NewPullCommand(dockerCli), NewPushCommand(dockerCli), NewSaveCommand(dockerCli), - NewSearchCommand(dockerCli), NewTagCommand(dockerCli), newListCommand(dockerCli), newRemoveCommand(dockerCli), diff --git a/cli/command/image/search.go b/cli/command/registry/search.go similarity index 99% rename from cli/command/image/search.go rename to cli/command/registry/search.go index 93db7006ac..124b4ae6cc 100644 --- a/cli/command/image/search.go +++ b/cli/command/registry/search.go @@ -1,4 +1,4 @@ -package image +package registry import ( "fmt"