MCPcopy
hub / github.com/spf13/cobra / GenMarkdown

Function GenMarkdown

doc/md_docs.go:52–54  ·  view source on GitHub ↗

GenMarkdown creates markdown output.

(cmd *cobra.Command, w io.Writer)

Source from the content-addressed store, hash-verified

50
51// GenMarkdown creates markdown output.
52func GenMarkdown(cmd *cobra.Command, w io.Writer) error {
53 return GenMarkdownCustom(cmd, w, func(s string) string { return s })
54}
55
56// GenMarkdownCustom creates custom markdown output.
57func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error {

Callers 5

TestGenMdDocFunction · 0.85
TestGenMdNoHiddenParentsFunction · 0.85
TestGenMdNoTagFunction · 0.85

Calls 1

GenMarkdownCustomFunction · 0.85

Tested by 5

TestGenMdDocFunction · 0.68
TestGenMdNoHiddenParentsFunction · 0.68
TestGenMdNoTagFunction · 0.68