beego / bee

Bee is a tool for helping develop with beego app framework.
Apache License 2.0
1.45k stars 922 forks source link

Add bee generate routers command #762

Closed flycash closed 3 years ago

flycash commented 3 years ago

Usage:

bee generate routers [-ctrlDir=/path/to/controller/directory] [-routersFile=/path/to/routers/file.go] [-routersPkg=myPackage]

for example:

bee generate routers -ctrlDir=/Users/mindeng/go-workspace/src/hello-api/controllers -routersFile=mygen.go -routersPkg="main"
FWangZil commented 3 years ago

Run this command ---> FATAL ▶ 0001 Command is missing

FWangZil commented 3 years ago

Run this command ---> FATAL ▶ 0001 Command is missing

go mod 环境下