()
| 35 | } |
| 36 | |
| 37 | func 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 | } |