Documentation
¶
Overview ¶
Package optionshelp produces markdown documentation for options and creates CLI commands utilizing this documentation.
Index ¶
- func Command(name, short string, groups []*options.Group, format *mdfmt.Formatter) *cobra.Command
- func LazyCommand(name, short string, groupFunc func() []*options.Group, format *mdfmt.Formatter) *cobra.Command
- func MarkdownDoc(groups []*options.Group) (docs string, err error)
- func SetTemplate(tmpl string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LazyCommand ¶
func LazyCommand(name, short string, groupFunc func() []*options.Group, format *mdfmt.Formatter) *cobra.Command
LazyCommand creates a command to display help for the given options.
func MarkdownDoc ¶
MarkdownDoc produces markdown documentation for the given options.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.