(cmd *cobra.Command, args []string, toComplete string)
| 145 | } |
| 146 | |
| 147 | func execShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 148 | if len(args) == 0 { |
| 149 | // show running container names |
| 150 | statusFilterFn := func(st containerd.ProcessStatus) bool { |
| 151 | return st == containerd.Running |
| 152 | } |
| 153 | return completion.ContainerNames(cmd, statusFilterFn) |
| 154 | } |
| 155 | return nil, cobra.ShellCompDirectiveNoFileComp |
| 156 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…