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

Function renderSelectedFilePreview

pkg/cmd/skills/preview/preview.go:384–390  ·  view source on GitHub ↗
(opts *PreviewOptions, filePath, content string)

Source from the content-addressed store, hash-verified

382}
383
384func renderSelectedFilePreview(opts *PreviewOptions, filePath, content string) string {
385 if !isMarkdownFile(filePath) {
386 return content
387 }
388
389 return opts.renderFile(filePath, content)
390}
391
392func renderMarkdownPreview(io *iostreams.IOStreams, filePath, content string) string {
393 if filePath == "SKILL.md" {

Callers 1

renderInteractiveFunction · 0.85

Calls 2

renderFileMethod · 0.80
isMarkdownFileFunction · 0.70

Tested by

no test coverage detected