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

Function isMarkdownFile

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

Source from the content-addressed store, hash-verified

409}
410
411func isMarkdownFile(filePath string) bool {
412 switch strings.ToLower(path.Ext(filePath)) {
413 case ".md", ".markdown", ".mdown", ".mkd", ".mkdn":
414 return true
415 default:
416 return false
417 }
418}
419
420// filterHiddenDirSkills applies the --allow-hidden-dirs flag logic. When the
421// 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