mirror of
https://github.com/beego/bee.git
synced 2024-11-26 06:21:34 +00:00
fix #107
This commit is contained in:
parent
1aa857a9ea
commit
ad453bb3e0
8
run.go
8
run.go
@ -55,6 +55,14 @@ func runApp(cmd *Command, args []string) int {
|
|||||||
ColorLog("[INFO] Uses '%s' as 'appname'\n", appname)
|
ColorLog("[INFO] Uses '%s' as 'appname'\n", appname)
|
||||||
} else {
|
} else {
|
||||||
appname = args[0]
|
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)
|
Debugf("current path:%s\n", crupath)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user