MCPcopy Create free account
hub / github.com/cli/cli / stubExtensionUpdate

Function stubExtensionUpdate

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

Source from the content-addressed store, hash-verified

1605}
1606
1607func stubExtensionUpdate(updatePath string) error {
1608 if _, err := os.Stat(updatePath); err == nil {
1609 return fmt.Errorf("failed to stub extension update directory: %s already exists", updatePath)
1610 }
1611 if err := os.MkdirAll(updatePath, 0755); err != nil {
1612 return fmt.Errorf("failed to stub extension update directory: %w", err)
1613 }
1614 return nil
1615}

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected