MCPcopy
hub / github.com/cli/cli / fileNames

Function fileNames

pkg/cmd/extension/manager_test.go:1431–1438  ·  view source on GitHub ↗
(files []os.DirEntry)

Source from the content-addressed store, hash-verified

1429}
1430
1431func fileNames(files []os.DirEntry) []string {
1432 names := make([]string, len(files))
1433 for i, f := range files {
1434 names[i] = f.Name()
1435 }
1436 sort.Strings(names)
1437 return names
1438}
1439
1440func stubExtension(path string) error {
1441 if err := os.MkdirAll(filepath.Dir(path), 0755); err != nil {

Callers 3

TestManager_CreateFunction · 0.85

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected