()
| 23 | } |
| 24 | |
| 25 | func (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 | |
| 39 | func (p powershell) Unregister() error { |
| 40 | if err := p.uninstallBinary(); err != nil { |
nothing calls this directly
no test coverage detected