MCPcopy Index your code
hub / github.com/cli/cli / removeCopilot

Function removeCopilot

pkg/cmd/copilot/copilot.go:464–474  ·  view source on GitHub ↗
(installDir string)

Source from the content-addressed store, hash-verified

462}
463
464func removeCopilot(installDir string) error {
465 if _, err := os.Stat(installDir); os.IsNotExist(err) {
466 return fmt.Errorf("failed to remove Copilot CLI: Copilot CLI not installed through `gh`")
467 }
468
469 if err := os.RemoveAll(installDir); err != nil {
470 return fmt.Errorf("failed to remove Copilot CLI: %w", err)
471 }
472
473 return nil
474}

Callers 2

TestRemoveCopilotFunction · 0.85
runCopilotFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by 1

TestRemoveCopilotFunction · 0.68