- Notifications
You must be signed in to change notification settings - Fork0
exuan/kratos-blades
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# installgo install https://github.com/exuan/kratos-blades/cmd/kratos-bladeskratos-blades -hNAME: kratos-blades - kratos scaffoldUSAGE: kratos-blades [global options]command [command options] [arguments...]COMMANDS: proto service help, h Shows a list of commands orhelpfor onecommandGLOBAL OPTIONS: --help, -h showhelp (default: false)
kratos-blades proto -hNAME: kratos-blades proto - USAGE: kratos-blades proto [command options] [arguments...]DESCRIPTION: Generate proto fileOPTIONS: --api-key value, -k value http auth key name (default: api_key) --auth, -a generate api auth security option (default: false) --gen-ent, -e generate ent option (default: false) --methods value, -m value service method name, like"User,Login" (,)separated --path value, -p value generate proto file path (default: ./) --service value, -s value service name, like backend (default: service) --version value, -v value (default: v1)
generate proto with ent to seeprotoc-gen-ent
- go-swagger error with
proto not found
, you can copy thisthird_party/options/ent/opts.proto
to yourthird_party
- generate edge with custom schema name, you can usefix-gen-edge-custom-schema-name