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

Method GetRelativeWorkingDirectory

pkg/ddevapp/utils.go:517–520  ·  view source on GitHub ↗

GetRelativeWorkingDirectory returns the relative working directory relative to project root Note that the relative dir is returned as unix-style forward-slashes

()

Source from the content-addressed store, hash-verified

515// GetRelativeWorkingDirectory returns the relative working directory relative to project root
516// Note that the relative dir is returned as unix-style forward-slashes
517func (app *DdevApp) GetRelativeWorkingDirectory() string {
518 pwd, _ := os.Getwd()
519 return app.GetRelativeDirectory(pwd)
520}
521
522// HasCustomCert returns true if the project uses a custom certificate
523func (app *DdevApp) HasCustomCert() bool {

Callers 2

makeContainerCmdFunction · 0.80

Calls 1

GetRelativeDirectoryMethod · 0.95

Tested by 1