generated

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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