cmdgen

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

cmdgen is a tool for generating pages from a cobra command for a Hugo site.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCmdDocs

func GenerateCmdDocs(cmd *cobra.Command, dir string, opts CmdDocsGeneratorOptions) error

Types

type CmdDocsGenerator

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

func NewCmdDocsGenerator

func NewCmdDocsGenerator(dir string, opts CmdDocsGeneratorOptions) *CmdDocsGenerator

func (*CmdDocsGenerator) GenMarkdownTree

func (g *CmdDocsGenerator) GenMarkdownTree(s *hugolib.Site, cmd *cobra.Command) error

type CmdDocsGeneratorOptions

type CmdDocsGeneratorOptions struct {
	BasePath           string
	MetadataAdditional map[string]interface{}
	Menus              hugolib.PageMenus
}

Jump to

Keyboard shortcuts

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