forked from mirror/cobra
slight typo in md_docs.md
This commit is contained in:
parent
e659faf634
commit
c11766b405
|
@ -36,7 +36,7 @@ This will write the markdown doc for ONLY "cmd" into the out, buffer.
|
|||
|
||||
## Customize the output
|
||||
|
||||
Both `GenMarkdown` and `GenMarkdownTree` has alternate versions with callbacks to get some control of the output:
|
||||
Both `GenMarkdown` and `GenMarkdownTree` have alternate versions with callbacks to get some control of the output:
|
||||
|
||||
```go
|
||||
func GenMarkdownTreeCustom(cmd *Command, dir string, filePrepender func(string) string, linkHandler func(string) string) {
|
||||
|
@ -78,4 +78,4 @@ linkHandler := func(name string) string {
|
|||
return "/commands/" + strings.ToLower(base) + "/"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue