customdocs

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenTreeWithTemplate

func GenTreeWithTemplate(cmd *cobra.Command, dir string, template Template) error

GenTreeWithTemplate outputs CLI docs for the command and all sub-commands into a directory, using the provided template.

func GenWithTemplate

func GenWithTemplate(cmd *cobra.Command, w io.Writer, template Template) error

GenWithTemplate outputs CLI docs based on the provided template (text/template or html/template).

Types

type Template

type Template interface {
	Execute(wr io.Writer, data interface{}) error
}

Template interface is implemented by core packages text/template and html/template.

Jump to

Keyboard shortcuts

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