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

Function isMarkdownFile

pkg/cmd/skills/preview/preview.go:410–417  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

408}
409
410func isMarkdownFile(filePath string) bool {
411 switch strings.ToLower(path.Ext(filePath)) {
412 case ".md", ".markdown", ".mdown", ".mkd", ".mkdn":
413 return true
414 default:
415 return false
416 }
417}
418
419// filterHiddenDirSkills applies the --allow-hidden-dirs flag logic. When the
420// flag is set, all skills are returned with a warning. Otherwise, hidden-dir

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected