You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnerrors.New("unsupported db driver: "+driver)
725
+
}
726
+
727
+
funcflagTip(name...string) string {
728
+
iflen(name) ==2 {
729
+
returnfmt.Sprintf("if you specify the directory where the web or microservice generated by sponge, the %s and %s flag can be ignored", name[0], name[1])
730
+
}
731
+
returnfmt.Sprintf("if you specify the directory where the web or microservice generated by sponge, the %s flag can be ignored", name[0])
# generate grpc connection code and specify the server directory, Note: code generation will be canceled when the latest generated file already exists.
Short: "Generate handler and protobuf CRUD code based on sql",
38
-
Long: `generate handler and protobuf CRUD code based on sql.
39
+
Long: color.HiBlackString(`generate handler and protobuf CRUD code based on sql.
39
40
40
41
Examples:
41
42
# generate handler and protobuf code.
@@ -49,7 +50,7 @@ Examples:
49
50
50
51
# generate handler and protobuf code and specify the server directory, Note: code generation will be canceled when the latest generated file already exists.
51
52
sponge web handler-pb --db-driver=mysql --db-dsn=root:123456@(192.168.3.37:3306)/test --db-table=user --out=./yourServerDir
0 commit comments