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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user