mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
help message updated to reflect current feature
This commit is contained in:
parent
1d6736ab63
commit
789132d622
11
g.go
11
g.go
@ -20,14 +20,21 @@ var cmdGenerate = &Command{
|
|||||||
UsageLine: "generate [Command]",
|
UsageLine: "generate [Command]",
|
||||||
Short: "generate code based on application",
|
Short: "generate code based on application",
|
||||||
Long: `
|
Long: `
|
||||||
bee generate model driver [dbconfig]
|
bee generate model [-driver=mysql] [-conn=root:@tcp(127.0.0.1:3306)/test] [-level=1]
|
||||||
generate model base on struct
|
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]
|
bee generate controller [modelfile]
|
||||||
generate RESTFul controllers based on modelfile
|
generate RESTFul controllers based on modelfile
|
||||||
|
|
||||||
bee generate router [controllerfile]
|
bee generate router [controllerfile]
|
||||||
generate router based on controllerfile
|
generate router based on controllerfile
|
||||||
|
|
||||||
bee generate docs
|
bee generate docs
|
||||||
generate swagger doc file
|
generate swagger doc file
|
||||||
|
|
||||||
bee generate test [routerfile]
|
bee generate test [routerfile]
|
||||||
generate testcase
|
generate testcase
|
||||||
`,
|
`,
|
||||||
|
Loading…
Reference in New Issue
Block a user