(cmd *cobra.Command, args []string)
| 90 | } |
| 91 | |
| 92 | func attachAction(cmd *cobra.Command, args []string) error { |
| 93 | options, err := attachOptions(cmd) |
| 94 | if err != nil { |
| 95 | return err |
| 96 | } |
| 97 | |
| 98 | client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address) |
| 99 | if err != nil { |
| 100 | return err |
| 101 | } |
| 102 | defer cancel() |
| 103 | |
| 104 | return container.Attach(ctx, client, args[0], options) |
| 105 | } |
| 106 | |
| 107 | func attachShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 108 | statusFilterFn := func(st containerd.ProcessStatus) bool { |
nothing calls this directly
no test coverage detected
searching dependent graphs…