1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 15:10:49 +00:00
This commit is contained in:
astaxie 2015-05-09 15:31:55 +08:00
parent 1aa857a9ea
commit ad453bb3e0

8
run.go
View File

@ -55,6 +55,14 @@ func runApp(cmd *Command, args []string) int {
ColorLog("[INFO] Uses '%s' as 'appname'\n", appname)
} else {
appname = args[0]
ColorLog("[INFO] Uses '%s' as 'appname'\n", appname)
if strings.HasSuffix(appname, ".go") && isExist(path.Join(crupath, appname)) {
ColorLog("[WARN] The appname has conflic with crupath's file, do you want to build appname as %s\n", appname)
ColorLog("[INFO] Do you want to overwrite it? [yes|no]] ")
if !askForConfirmation() {
return 0
}
}
}
Debugf("current path:%s\n", crupath)