1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 15:10:49 +00:00

bee generate scaffold

This commit is contained in:
astaxie 2014-08-11 10:39:10 +08:00
parent 6abaa4368b
commit 172e17ea12
2 changed files with 6 additions and 0 deletions

5
g.go
View File

@ -20,6 +20,11 @@ var cmdGenerate = &Command{
UsageLine: "generate [Command]",
Short: "generate code based on application",
Long: `
bee generate scaffold [modelname] [-fields=""]
The generate scaffold command will do a number of things for you
-fields: a list of database fields.
example: bee generate scaffold post -fields="title:string,body:text"
bee generate model [-tables=""] [-driver=mysql] [-conn=root:@tcp(127.0.0.1:3306)/test] [-level=1]
generate model based on an existing database
-tables: a list of table names separated by ',', default is empty, indicating all tables

1
g_scaffold.go Normal file
View File

@ -0,0 +1 @@
package main