MCPcopy Index your code
hub / github.com/commitdev/zero / GetCwd

Function GetCwd

internal/util/util.go:45–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func GetCwd() string {
46 dir, err := os.Getwd()
47 if err != nil {
48 log.Fatalf("Getting working directory failed: %v\n", err)
49 panic(err)
50 }
51
52 return dir
53}
54
55func ExecuteCommand(cmd *exec.Cmd, pathPrefix string, envars []string, shouldPipeStdErr bool) error {
56

Callers 3

IsLocalFunction · 0.92
ExecuteCommandFunction · 0.85
ExecuteCommandOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected