MCPcopy Create free account
hub / github.com/ddev/ddev / GetHookDefaultComments

Method GetHookDefaultComments

pkg/ddevapp/apptypes.go:375–381  ·  view source on GitHub ↗

GetHookDefaultComments gets the actual text of the config.yaml hook suggestions for a given apptype

()

Source from the content-addressed store, hash-verified

373// GetHookDefaultComments gets the actual text of the config.yaml hook suggestions
374// for a given apptype
375func (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

Callers 1

WriteConfigMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected