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

Function ExampleGenMan

doc/man_examples_test.go:37–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func ExampleGenMan() {
38 cmd := &cobra.Command{
39 Use: "test",
40 Short: "my test program",
41 }
42 header := &doc.GenManHeader{
43 Title: "MINE",
44 Section: "3",
45 }
46 out := new(bytes.Buffer)
47 cobra.CheckErr(doc.GenMan(cmd, header, out))
48 fmt.Print(out.String())
49}

Callers

nothing calls this directly

Calls 4

CheckErrFunction · 0.92
GenManFunction · 0.92
PrintMethod · 0.80
StringMethod · 0.80

Tested by

no test coverage detected