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

Method Register

completion/zsh.go:24–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func (z zsh) Register() error {
25 if err := z.installBinary(); err != nil {
26 return fmt.Errorf("failed to install zsh binary -> %w", err)
27 }
28 if err := z.installCompletion(); err != nil {
29 return fmt.Errorf("failed to install zsh completion -> %w", err)
30 }
31 if err := z.registerRunCommand(); err != nil {
32 return fmt.Errorf("failed to add run command to zshrc -> %w", err)
33 }
34
35 return nil
36}
37
38func (z zsh) Unregister() error {
39 if err := z.uninstallBinary(); err != nil {

Callers

nothing calls this directly

Calls 3

installBinaryMethod · 0.95
installCompletionMethod · 0.95
registerRunCommandMethod · 0.95

Tested by

no test coverage detected