(cmd *cobra.Command, _ []string, _ string)
| 59 | } |
| 60 | |
| 61 | func completionCommands(cmd *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) { |
| 62 | commandNames := []string{} |
| 63 | commands := cmd.Root().Commands() |
| 64 | for _, command := range commands { |
| 65 | if strings.Contains(command.Name(), "complet") { |
| 66 | continue |
| 67 | } |
| 68 | commandNames = append(commandNames, command.Name()) |
| 69 | } |
| 70 | |
| 71 | return commandNames, cobra.ShellCompDirectiveNoFileComp |
| 72 | } |
| 73 | |
| 74 | func completionContainerNames(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) { |
| 75 | var containerNames []string |
nothing calls this directly
no test coverage detected
searching dependent graphs…