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

Method renderFile

pkg/cmd/skills/preview/preview.go:375–381  ·  view source on GitHub ↗
(filePath, content string)

Source from the content-addressed store, hash-verified

373}
374
375func (opts *PreviewOptions) renderFile(filePath, content string) string {
376 if opts.RenderFile != nil {
377 return opts.RenderFile(filePath, content)
378 }
379
380 return renderMarkdownPreview(opts.IO, filePath, content)
381}
382
383func renderSelectedFilePreview(opts *PreviewOptions, filePath, content string) string {
384 if !isMarkdownFile(filePath) {

Callers 2

previewRunFunction · 0.80

Calls 1

renderMarkdownPreviewFunction · 0.85

Tested by

no test coverage detected