Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommandsTo ¶
Types ¶
type CommandData ¶
type CommandData struct {
Name string
Description string
LongDescription string
Usage string
Example string
HasParent bool
ParentCommandPath string
ParentCommandName string
ParentFilePath string
Aliases []string
Flags []FlagInfo
LocalFlags []FlagInfo
PersistentFlags []FlagInfo
HasSubCommands bool
SubCommands []string
IsAvailableCommand bool
FilepathPrefix string // Add this new field
}
type CommandInfo ¶
type IndexData ¶
type IndexData struct {
Commands []CommandInfo
GeneratedAt string
Version string
}
type Module ¶ added in v0.3.4
type Module struct{}
Module implements the cmdbuilder.Module interface for generate-docs
func NewModule ¶ added in v0.3.4
func NewModule() *Module
NewModule creates a new generate-docs module
func (*Module) RegisterCommands ¶ added in v0.3.4
RegisterCommands adds the generate-docs command to the root command
Click to show internal directories.
Click to hide internal directories.