(err error)
| 15 | type ValidArgsFunction func(cmd *cobra.Command, args []string, toComplete string) (completions []string, directives cobra.ShellCompDirective) |
| 16 | |
| 17 | func HandleError(err error) (completions []string, directives cobra.ShellCompDirective) { |
| 18 | return nil, cobra.ShellCompDirectiveError |
| 19 | } |
| 20 | |
| 21 | func Bridge(env *execenv.Env) ValidArgsFunction { |
| 22 | return func(cmd *cobra.Command, args []string, toComplete string) (completions []string, directives cobra.ShellCompDirective) { |
no outgoing calls
no test coverage detected