Skip to content
Myr

doc: Add docs

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

authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent 3dc7f13 · Browse files · 2 files+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

2 files+4 added−0 removed

modified:doc/man_docs.go+2 added
75 unmodified lines
76 headerCopy := *header77 return GenMan(cmd, &headerCopy, f)78}7980// GenManTreeOptions is the options for generating the man pages.81// Used only in GenManTreeFromOpts.82type GenManTreeOptions struct {83 Header *GenManHeader84 Path string85 CommandSeparator string
148 unmodified lines
modified:doc/md_docs.go+2 added
124 unmodified lines
125 emptyStr := func(s string) string { return "" }126 return GenMarkdownTreeCustom(cmd, dir, emptyStr, identity)127}128129// GenMarkdownTreeCustom is the the same as GenMarkdownTree, but130// with custom filePrepender and linkHandler.131func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender, linkHandler func(string) string) error {132 for _, c := range cmd.Commands() {133 if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {134 continue
22 unmodified lines