1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 18:20:18 +00:00
This commit is contained in:
astaxie
2014-08-18 11:52:06 +08:00
12 changed files with 24 additions and 14 deletions

3
g.go
View File

@ -71,7 +71,7 @@ func init() {
cmdGenerate.Flag.Var(&fields, "fields", "specify the fields want to generate.")
}
func generateCode(cmd *Command, args []string) {
func generateCode(cmd *Command, args []string) int {
curpath, _ := os.Getwd()
if len(args) < 1 {
ColorLog("[ERRO] command is missing\n")
@ -199,4 +199,5 @@ func generateCode(cmd *Command, args []string) {
ColorLog("[ERRO] command is missing\n")
}
ColorLog("[SUCC] generate successfully created!\n")
return 0
}