(shell completion.ShellType)
| 119 | } |
| 120 | |
| 121 | func (i *integrateCmd) handleUnregister(shell completion.ShellType) error { |
| 122 | if err := i.doUnregister(shell); err != nil { |
| 123 | return fmt.Errorf("failed to unregister %s completion -> %w", i.getShellName(shell), err) |
| 124 | } |
| 125 | |
| 126 | color.PrintSuccess("%s tab completion has been removed successfully", i.getShellName(shell)) |
| 127 | return nil |
| 128 | } |
| 129 | |
| 130 | func (i *integrateCmd) getShellName(shell completion.ShellType) string { |
| 131 | switch shell { |
no test coverage detected