MCPcopy Index your code
hub / github.com/devspace-sh/devspace / RealWorkDir

Function RealWorkDir

pkg/devspace/context/context.go:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func RealWorkDir() (string, error) {
42 if runtime.GOOS == "darwin" {
43 if pwd, present := os.LookupEnv("PWD"); present {
44 os.Unsetenv("PWD")
45 defer os.Setenv("PWD", pwd)
46 }
47 return os.Getwd()
48 }
49 return "", nil
50}
51
52type Context interface {
53 // Context is the golang context to use

Callers 1

NewContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected