Files
dify-plugin-daemon/cmd/codegen/main.go
Yeuoly 3d28e0ceed feat: Add code generation for plugin controllers and services (#301)
* feat: Add code generation for plugin controllers and services

- Introduced a code generation mechanism for plugin controllers and services, allowing for automatic generation based on defined dispatchers.
- Created new files for generated controllers, services, and templates to streamline the plugin invocation process.
- Removed outdated functions related to tool validation and runtime parameters, consolidating functionality into generated files.
- Updated dependencies in go.mod and go.sum to include necessary packages for the new code generation features.

* fix
2025-05-23 14:57:56 +08:00

21 lines
323 B
Go

package main
import (
"flag"
"fmt"
"os"
"github.com/langgenius/dify-plugin-daemon/internal/server/controllers/generator"
)
func main() {
// Parse command line flags
flag.Parse()
// Generate all files
if err := generator.GenerateAll(); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
}