GetHookDefaultComments gets the actual text of the config.yaml hook suggestions for a given apptype
()
| 373 | // GetHookDefaultComments gets the actual text of the config.yaml hook suggestions |
| 374 | // for a given apptype |
| 375 | func (app *DdevApp) GetHookDefaultComments() []byte { |
| 376 | if appFuncs, ok := appTypeMatrix[app.Type]; ok && appFuncs.hookDefaultComments != nil { |
| 377 | suggestions := appFuncs.hookDefaultComments() |
| 378 | return suggestions |
| 379 | } |
| 380 | return []byte("") |
| 381 | } |
| 382 | |
| 383 | // GetComposerCreateAllowedPaths gets all paths relative to the app root that are allowed to be present |
| 384 | // for a given apptype when running ddev composer create-project |