(shell completion.ShellType)
| 154 | } |
| 155 | |
| 156 | func (i *integrateCmd) doRegister(shell completion.ShellType) error { |
| 157 | switch shell { |
| 158 | case completion.BashShell: |
| 159 | return i.bashCompletion.Register() |
| 160 | case completion.ZshShell: |
| 161 | return i.zshCompletion.Register() |
| 162 | case completion.TypePowerShell: |
| 163 | return i.psCompletion.Register() |
| 164 | default: |
| 165 | return fmt.Errorf("unsupported shell: %s", i.getShellName(shell)) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | func (i *integrateCmd) completion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 170 | var suggestions []string |
no test coverage detected