(_ *cobra.Command, _ []string, _ string)
| 72 | } |
| 73 | |
| 74 | func completionContainerNames(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) { |
| 75 | var containerNames []string |
| 76 | if containers, err := getContainers(); err == nil { |
| 77 | for _, container := range containers { |
| 78 | name := container.Name() |
| 79 | containerNames = append(containerNames, name) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | return containerNames, cobra.ShellCompDirectiveNoFileComp |
| 84 | } |
| 85 | |
| 86 | func completionContainerNamesFiltered(cmd *cobra.Command, args []string, _ string) ([]string, cobra.ShellCompDirective) { |
| 87 | if cmd.Name() == "enter" && len(args) >= 1 { |
nothing calls this directly
no test coverage detected
searching dependent graphs…