MCPcopy
hub / github.com/cli/cli / stubExtensionUpdate

Function stubExtensionUpdate

pkg/cmd/extension/manager_test.go:1531–1539  ·  view source on GitHub ↗
(updatePath string)

Source from the content-addressed store, hash-verified

1529}
1530
1531func stubExtensionUpdate(updatePath string) error {
1532 if _, err := os.Stat(updatePath); err == nil {
1533 return fmt.Errorf("failed to stub extension update directory: %s already exists", updatePath)
1534 }
1535 if err := os.MkdirAll(updatePath, 0755); err != nil {
1536 return fmt.Errorf("failed to stub extension update directory: %w", err)
1537 }
1538 return nil
1539}

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected