mirror of
https://github.com/spf13/cobra
synced 2024-12-26 22:37:08 +00:00
slight typo in md_docs.md
This commit is contained in:
parent
e659faf634
commit
c11766b405
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue