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

Method renderFile

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

Source from the content-addressed store, hash-verified

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

Callers 2

previewRunFunction · 0.80

Calls 1

renderMarkdownPreviewFunction · 0.85

Tested by

no test coverage detected