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

Function GenReST

doc/rest_docs.go:57–59  ·  view source on GitHub ↗

GenReST creates reStructured Text output.

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

Source from the content-addressed store, hash-verified

55
56// GenReST creates reStructured Text output.
57func GenReST(cmd *cobra.Command, w io.Writer) error {
58 return GenReSTCustom(cmd, w, defaultLinkHandler)
59}
60
61// GenReSTCustom creates custom reStructured Text output.
62func GenReSTCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string, string) string) error {

Callers 4

TestGenRSTDocFunction · 0.85
TestGenRSTNoTagFunction · 0.85
BenchmarkGenReSTToFileFunction · 0.85

Calls 1

GenReSTCustomFunction · 0.85

Tested by 4

TestGenRSTDocFunction · 0.68
TestGenRSTNoTagFunction · 0.68
BenchmarkGenReSTToFileFunction · 0.68