generators

package
v0.10.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenMarkdownTree

func GenMarkdownTree(cmd *cobra.Command, templatesDir, outputDir string) error

func GenMarkdownTreeCustom

func GenMarkdownTreeCustom(cmd *cobra.Command, templatesDir, outputDir string, subdir string, filePrepender, linkHandler func(string) string) error

func GenReference

func GenReference(cmd *cobra.Command, templatesDir string, w io.Writer, linkHandler func(string) string, indexFile bool) error

Types

type Link struct {
	Name        string
	Description string
	Path        string
}

type Option

type Option struct {
	Name        string
	Shorthand   string
	Usage       string
	ValueType   string
	DefVal      string
	NoOptDefVal string
}

type Reference

type Reference struct {
	NoList           bool
	Title            string
	Description      string
	ShowUseLine      bool
	UseLine          string
	ShowExample      bool
	Example          string
	Options          []Option
	InheritedOptions []Option
	Links            []Link
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL