Don't stop completion after first repo

Signed-off-by: Andreas Lindhé <andreas@lindhe.io>
pull/7791/head
Andreas Lindhé 6 years ago
parent 4c5871d2ca
commit b2518653c2

@ -55,9 +55,6 @@ func newRepoRemoveCmd(out io.Writer) *cobra.Command {
// Function providing dynamic auto-completion // Function providing dynamic auto-completion
completion.RegisterValidArgsFunc(cmd, func(cmd *cobra.Command, args []string, toComplete string) ([]string, completion.BashCompDirective) { completion.RegisterValidArgsFunc(cmd, func(cmd *cobra.Command, args []string, toComplete string) ([]string, completion.BashCompDirective) {
if len(args) != 0 {
return nil, completion.BashCompDirectiveNoFileComp
}
return compListRepos(toComplete), completion.BashCompDirectiveNoFileComp return compListRepos(toComplete), completion.BashCompDirectiveNoFileComp
}) })

Loading…
Cancel
Save