(choices []string)
| 72 | } |
| 73 | |
| 74 | func From(choices []string) ValidArgsFunction { |
| 75 | return func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 76 | return choices, cobra.ShellCompDirectiveNoFileComp |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | func GitRemote(env *execenv.Env) ValidArgsFunction { |
| 81 | return func(cmd *cobra.Command, args []string, toComplete string) (completions []string, directives cobra.ShellCompDirective) { |
no outgoing calls
no test coverage detected