(cmd *cobra.Command, args []string)
| 129 | } |
| 130 | |
| 131 | func pushAction(cmd *cobra.Command, args []string) error { |
| 132 | options, err := pushOptions(cmd) |
| 133 | if err != nil { |
| 134 | return err |
| 135 | } |
| 136 | rawRef := args[0] |
| 137 | |
| 138 | client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address) |
| 139 | if err != nil { |
| 140 | return err |
| 141 | } |
| 142 | defer cancel() |
| 143 | |
| 144 | return image.Push(ctx, client, rawRef, options) |
| 145 | } |
| 146 | |
| 147 | func pushShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 148 | // show image names |
nothing calls this directly
no test coverage detected
searching dependent graphs…