(cmd *cobra.Command, args []string, toComplete string)
| 92 | } |
| 93 | |
| 94 | func stopShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 95 | // show non-stopped container names |
| 96 | statusFilterFn := func(st containerd.ProcessStatus) bool { |
| 97 | return st != containerd.Stopped && st != containerd.Created && st != containerd.Unknown |
| 98 | } |
| 99 | return completion.ContainerNames(cmd, statusFilterFn) |
| 100 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…