Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomPlugin ¶
type CustomPlugin struct { Name string // Plugin name (e.g., "twirp") Command string // Plugin command (e.g., "protoc-gen-twirp") OutputDir string // Output directory for this plugin. e.g twirp_out=./gen/go, this defaults to outputDir if empty Options map[string]string // Plugin options Required bool }
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
NewExecutor creates a new Executor instance. depsPath is the path to the directory containing dependencies (typically located in the ~/.protodex/deps directory) like google well-known types.
func (*Executor) GenerateCode ¶
type GenerateOptions ¶
type GenerateOptions struct { ProjectPath string Options map[string]string CustomPlugins []CustomPlugin // Custom plugins from project config }
type PluginManager ¶
type PluginManager struct{}
func NewPluginManager ¶
func NewPluginManager() (*PluginManager, error)
func (*PluginManager) Process ¶
func (pm *PluginManager) Process(language, outputDir string, customPlugins []CustomPlugin) ([]string, error)
Click to show internal directories.
Click to hide internal directories.