1
0
mirror of https://github.com/beego/bee.git synced 2025-07-14 13:11:01 +00:00

Add override param to bee generate appcode

This commit is contained in:
neontx
2018-01-21 22:15:42 +08:00
parent 4ca7777c32
commit 32fc8f4b1a
4 changed files with 16 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 {