Explorar el Código

Merge pull request #23533 from dnephin/remove_old_cmd_tag

Remove CmdTag
Arnaud Porterie hace 9 años
padre
commit
1704914d7c
Se han modificado 1 ficheros con 0 adiciones y 20 borrados
  1. 0 20
      api/client/tag.go

+ 0 - 20
api/client/tag.go

@@ -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))
-}