| 31 | type validArgsFn func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) |
| 32 | |
| 33 | func noCompletion() validArgsFn { |
| 34 | return func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 35 | return []string{}, cobra.ShellCompDirectiveNoSpace |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func completeServiceNames(dockerCli command.Cli, p *ProjectOptions) validArgsFn { |
| 40 | return func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |