MCPcopy Create free account
hub / github.com/celer-pkg/celer / handleUnregister

Method handleUnregister

cmds/cmd_integrate.go:121–128  ·  view source on GitHub ↗
(shell completion.ShellType)

Source from the content-addressed store, hash-verified

119}
120
121func (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
130func (i *integrateCmd) getShellName(shell completion.ShellType) string {
131 switch shell {

Callers 1

executeMethod · 0.95

Calls 3

doUnregisterMethod · 0.95
getShellNameMethod · 0.95
PrintSuccessFunction · 0.92

Tested by

no test coverage detected