1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 18:40:54 +00:00

help message updated to reflect current feature

This commit is contained in:
ZhengYang 2014-08-01 16:25:28 +08:00
parent 1d6736ab63
commit 789132d622

11
g.go
View File

@ -20,14 +20,21 @@ var cmdGenerate = &Command{
UsageLine: "generate [Command]",
Short: "generate code based on application",
Long: `
bee generate model driver [dbconfig]
generate model base on struct
bee generate model [-driver=mysql] [-conn=root:@tcp(127.0.0.1:3306)/test] [-level=1]
generate model based on an existing database
-driver: [mysql | postgresql | sqlite], the default is mysql
-conn: the connection string used by the driver, the default is root:@tcp(127.0.0.1:3306)/test
-level: [1 | 2 | 3], 1 = model; 2 = models,controller; 3 = models,controllers,router
bee generate controller [modelfile]
generate RESTFul controllers based on modelfile
bee generate router [controllerfile]
generate router based on controllerfile
bee generate docs
generate swagger doc file
bee generate test [routerfile]
generate testcase
`,