Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGenerateCommand ¶
func NewGenerateCommand(handler GenerateHandler) *cobra.Command
NewGenerateCommand creates a new generate command with the provided handler
func NewVersionCommand ¶
func NewVersionCommand(handler VersionHandler) *cobra.Command
NewVersionCommand creates a new version command with the provided handler
Types ¶
type GenerateHandler ¶
type GenerateHandler interface {
HandleGenerate(cmd *cobra.Command, req *GenerateRequest) error
}
GenerateHandler defines the interface for handling generate commands
type GenerateRequest ¶
type GenerateRequest struct {
Flags GenerateRequestFlags `json:"flags"`
}
GenerateRequest represents the parameters for the generate command
type GenerateRequestFlags ¶
type GenerateRequestFlags struct {
Input string `json:"input"` // Input directory containing markdown files
Output string `json:"output"` // Output directory for generated files
Package string `json:"pkg"` // Go package name for generated files
Suffix string `json:"suffix"` // File suffix for generated files
}
GenerateRequestFlags represents the flags for the generate command
type VersionHandler ¶
type VersionHandler interface {
HandleVersion(cmd *cobra.Command, req *VersionRequest) error
}
VersionHandler defines the interface for handling version commands
type VersionRequest ¶
type VersionRequest struct {
}
VersionRequest represents the parameters for the version command
Click to show internal directories.
Click to hide internal directories.