(cmd *cobra.Command, args []string)
| 152 | } |
| 153 | |
| 154 | func commitAction(cmd *cobra.Command, args []string) error { |
| 155 | options, err := commitOptions(cmd) |
| 156 | if err != nil { |
| 157 | return err |
| 158 | } |
| 159 | client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address) |
| 160 | if err != nil { |
| 161 | return err |
| 162 | } |
| 163 | defer cancel() |
| 164 | |
| 165 | return container.Commit(ctx, client, args[1], args[0], options) |
| 166 | } |
| 167 | |
| 168 | func commitShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 169 | if len(args) == 0 { |
nothing calls this directly
no test coverage detected
searching dependent graphs…