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

Function renderSelectedFilePreview

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

Source from the content-addressed store, hash-verified

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

Callers 1

renderInteractiveFunction · 0.85

Calls 2

renderFileMethod · 0.80
isMarkdownFileFunction · 0.70

Tested by

no test coverage detected