Documentation
¶
Overview ¶
Package cobradocs renders Markdown reference documentation for a Cobra command tree, independent of any particular CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HideCommands ¶
HideCommands hides every command in the tree for which condition reports true, pruning it (and its subtree) from generated output.
Types ¶
type MarkdownOptions ¶
type MarkdownOptions struct {
// Frontmatter is prepended verbatim to the output, before any command docs.
Frontmatter string
}
Click to show internal directories.
Click to hide internal directories.