(cmd *cobra.Command, args []string)
| 77 | } |
| 78 | |
| 79 | func stopAction(cmd *cobra.Command, args []string) error { |
| 80 | options, err := stopOptions(cmd) |
| 81 | if err != nil { |
| 82 | return err |
| 83 | } |
| 84 | |
| 85 | client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address) |
| 86 | if err != nil { |
| 87 | return err |
| 88 | } |
| 89 | defer cancel() |
| 90 | |
| 91 | return container.Stop(ctx, client, args, options) |
| 92 | } |
| 93 | |
| 94 | func stopShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 95 | // show non-stopped container names |
nothing calls this directly
no test coverage detected
searching dependent graphs…