goforge rem:grpc
Removes gRPC servers, interceptors, clients, protos, and configuration from a GoForge project (for HTTP-only APIs).
Syntax
bash
goforge rem:grpcWhat It Removes
- Deletes
boot/server/grpc.go,boot/client/grpc_client.go,boot/server/middleware/grpc.go,core/config/grpc.go. - Deletes
internal/services/*/grpc.go,internal/proto/*, andinternal/tests/grpc/*. - Patches
core/config/config.go,internal/services/*/module.go,boot/kernel.go, and runsgo mod tidy.
Post-Command Manual Fixes (goforge-template d666864)
In the current goforge-template release, goforge rem:grpc leaves two references that need manual cleanup to compile:
boot/kernel.go:NewWithConfig/NewAppcallbuildServers(cfg, db, routers, grpcRegistries)(4 arguments), whichrem:grpcdoes not match when deletingbuildServers. Replace those calls with[]server.Server{server.NewHTTPServer(cfg, routers, server.WithReadinessCheck(db.Ping))}.core/config/config.go: Remove thec.GRPC.Port/c.GRPC.TLSEnabled/c.GRPC.TLSCertFile/c.GRPC.TLSKeyFilechecks insideAllConfig.Validate().
