(cmd string)
| 58 | } |
| 59 | |
| 60 | func tag(cmd string) { |
| 61 | log.Println(cmd) |
| 62 | command := exec.Command("bash", "-c", "docker tag "+cmd) |
| 63 | command.Stdout = os.Stdout |
| 64 | command.Stderr = os.Stderr |
| 65 | e := command.Run() |
| 66 | if e != nil { |
| 67 | panic(e) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func init() { |
| 72 | rootCmd.AddCommand(pullCmd) |