From 19d6960b5bab7598b15091e5d9e9ee3b24537511 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 14 Jun 2016 15:09:38 -0400 Subject: [PATCH] Remove CmdTag. This file was accidentally re-added as part of a rebase. Signed-off-by: Daniel Nephin --- api/client/tag.go | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 api/client/tag.go diff --git a/api/client/tag.go b/api/client/tag.go deleted file mode 100644 index 0b6a073ccb..0000000000 --- a/api/client/tag.go +++ /dev/null @@ -1,20 +0,0 @@ -package client - -import ( - "golang.org/x/net/context" - - Cli "github.com/docker/docker/cli" - flag "github.com/docker/docker/pkg/mflag" -) - -// CmdTag tags an image into a repository. -// -// Usage: docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG] -func (cli *DockerCli) CmdTag(args ...string) error { - cmd := Cli.Subcmd("tag", []string{"IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]"}, Cli.DockerCommands["tag"].Description, true) - cmd.Require(flag.Exact, 2) - - cmd.ParseFlags(args, true) - - return cli.client.ImageTag(context.Background(), cmd.Arg(0), cmd.Arg(1)) -}