1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 08:00:18 +00:00

Add override param to bee generate appcode

Add override param to bee generate appcode, then users could make a decision to override generated files in command line
This commit is contained in:
neontx
2018-01-17 11:46:22 +08:00
parent e90da8f77b
commit e233aa87a7
4 changed files with 19 additions and 7 deletions

View File

@ -157,6 +157,12 @@ func AskForConfirmation() bool {
}
}
// print a warning message before calling AskForConfirmation()
func WarningBeforeAskForConfirmation(warning string, fpath string) bool {
beeLogger.Log.Warnf(warning, fpath)
return AskForConfirmation()
}
func containsString(slice []string, element string) bool {
for _, elem := range slice {
if elem == element {