commanddocgenerator

package
v2.11.26 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBookYAML

func GenerateBookYAML(buf *bytes.Buffer, cmd *cobra.Command, docVersion string)

GenerateBookYAML generates the _book.yaml. See https://developers.google.com/devsite/reference/metadata/book

func ListHeritage

func ListHeritage(cmd *cobra.Command) []string

ListHeritage returns a slice of names representing the heritage of a command.

func PrintFlags

func PrintFlags(buf *bytes.Buffer, flagSet *pflag.FlagSet)

PrintFlags converts the flagSet to a GCP docs compatible format.

func TraverseCommands

func TraverseCommands(cmd *cobra.Command, f func(cmd *cobra.Command) error) error

TraverseCommands will invoke the given function for each command that is not hidden or only a help topic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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