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

Function ExampleGenManTree

doc/man_examples_test.go:25–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23)
24
25func ExampleGenManTree() {
26 cmd := &cobra.Command{
27 Use: "test",
28 Short: "my test program",
29 }
30 header := &doc.GenManHeader{
31 Title: "MINE",
32 Section: "3",
33 }
34 cobra.CheckErr(doc.GenManTree(cmd, header, "/tmp"))
35}
36
37func ExampleGenMan() {
38 cmd := &cobra.Command{

Callers

nothing calls this directly

Calls 2

CheckErrFunction · 0.92
GenManTreeFunction · 0.92

Tested by

no test coverage detected