MCPcopy Index your code
hub / github.com/celer-pkg/celer / Register

Method Register

completion/powershell.go:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (p powershell) Register() error {
26 if err := p.installBinary(); err != nil {
27 return fmt.Errorf("failed to install powershell binary -> %w", err)
28 }
29 if err := p.installCompletion(); err != nil {
30 return fmt.Errorf("failed to install powershell completion -> %w", err)
31 }
32 if err := p.registerRunCommand(); err != nil {
33 return fmt.Errorf("failed to add run command to powershell profile -> %w", err)
34 }
35
36 return nil
37}
38
39func (p powershell) Unregister() error {
40 if err := p.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