Skip to content
Myr

Simplify GenMarkdownTreeCustom signature

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Martí · committed by Daniel Martí · parent 5fa1003 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:doc/md_docs.go+1 added-1 removed
109 unmodified lines
110 emptyStr := func(s string) string { return "" }111 GenMarkdownTreeCustom(cmd, dir, emptyStr, identity)112}113114func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender func(string) string, linkHandler func(string) string) {114func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender, linkHandler func(string) string) {115 for _, c := range cmd.Commands() {116 if !c.IsAvailableCommand() || c.IsHelpCommand() {117 continue118 }
25 unmodified lines
modified:doc/md_docs.md+1 added-1 removed