docgen

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraContent

type ExtraContent struct {
	Description string
	Examples    string
}

ExtraContent holds additional markdown docs for a command

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator generates documentation from cobra commands

func NewGenerator

func NewGenerator(docsPath, markdownPath, manPath string) *Generator

NewGenerator creates a new documentation generator

func (*Generator) Generate

func (g *Generator) Generate(rootCmd *cobra.Command) error

Generate generates documentation for all commands

Jump to

Keyboard shortcuts

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