github.com/lusis/distribution@v2.0.1+incompatible/cmd/dist/push.go (about) 1 package main 2 3 import "github.com/codegangsta/cli" 4 5 var ( 6 commandPush = cli.Command{ 7 Name: "push", 8 Usage: "Push an image to a registry", 9 Action: imagePush, 10 Flags: []cli.Flag{ 11 cli.StringFlag{ 12 Name: "r,registry", 13 Value: "hub.docker.io", 14 Usage: "Registry to use (e.g.: localhost:5000)", 15 }, 16 }, 17 } 18 ) 19 20 func imagePush(*cli.Context) { 21 }