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

Function fileNames

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

Source from the content-addressed store, hash-verified

1505}
1506
1507func fileNames(files []os.DirEntry) []string {
1508 names := make([]string, len(files))
1509 for i, f := range files {
1510 names[i] = f.Name()
1511 }
1512 sort.Strings(names)
1513 return names
1514}
1515
1516func stubExtension(path string) error {
1517 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