Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllCommands ¶
AllCommands returns a sequence of all commands in the command tree.
func CountCommands ¶
CountCommands returns the number of commands in the command tree.
Types ¶
type Docs ¶
type Docs struct {
// Cmd is the command documentation was generated for.
Cmd *cobra.Command
// HTML is a map from command path to html contents.
HTML map[string]string
}
Docs represents html documentation for a cobra.Command.
func MakeDocs ¶
MakeDocs generates html documentation for a cobra.Command.
Click to show internal directories.
Click to hide internal directories.