(shell completion.ShellType)
| 110 | } |
| 111 | |
| 112 | func (i *integrateCmd) handleRegister(shell completion.ShellType) error { |
| 113 | if err := i.doRegister(shell); err != nil { |
| 114 | return fmt.Errorf("failed to register %s completion -> %w", i.getShellName(shell), err) |
| 115 | } |
| 116 | |
| 117 | color.PrintSuccess("%s tab completion has been integrated successfully", i.getShellName(shell)) |
| 118 | return nil |
| 119 | } |
| 120 | |
| 121 | func (i *integrateCmd) handleUnregister(shell completion.ShellType) error { |
| 122 | if err := i.doUnregister(shell); err != nil { |
no test coverage detected