(shell completion.ShellType)
| 141 | } |
| 142 | |
| 143 | func (i *integrateCmd) doUnregister(shell completion.ShellType) error { |
| 144 | switch shell { |
| 145 | case completion.BashShell: |
| 146 | return i.bashCompletion.Unregister() |
| 147 | case completion.ZshShell: |
| 148 | return i.zshCompletion.Unregister() |
| 149 | case completion.TypePowerShell: |
| 150 | return i.psCompletion.Unregister() |
| 151 | default: |
| 152 | return fmt.Errorf("unsupported shell: %s", i.getShellName(shell)) |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | func (i *integrateCmd) doRegister(shell completion.ShellType) error { |
| 157 | switch shell { |
no test coverage detected